Improved SSO workflow: use WS-Trust STS endpoint directly instead of relying on XUIAMSSOi.dll
This commit is contained in:
4
main.py
4
main.py
@@ -112,8 +112,8 @@ def application():
|
||||
client._cache_persistent(persistent=util.Store(f'cache.{client._server["volume"].lower()}.{client._server["uci"].lower()}.{user[0]}.db', journal_mode='WAL').memo)
|
||||
return jsonify_result(user, id=request.json.get('id'))
|
||||
else:
|
||||
from auth import XUIAMSSOi_MySsoTokenVBA
|
||||
if token := XUIAMSSOi_MySsoTokenVBA():
|
||||
import XWBSSOi
|
||||
if token := XWBSSOi.get_sso_token(application='CPRSChart.exe'):
|
||||
user = client.authenticate(token)
|
||||
client._cache_persistent(persistent=util.Store(f'cache.{client._server["volume"].lower()}.{client._server["uci"].lower()}.{user[0]}.db', journal_mode='WAL').memo)
|
||||
return jsonify_result(user, id=request.json.get('id'))
|
||||
|
Reference in New Issue
Block a user