Remove various preferences related to SSO, move callback to config

This commit is contained in:
blitzmann
2021-10-19 00:15:10 -04:00
parent 7b9e196ca8
commit 2a94dcebf8
4 changed files with 7 additions and 131 deletions

View File

@@ -102,8 +102,8 @@ class Esi(EsiAccess):
def login(self):
# always start the local server if user is using client details. Otherwise, start only if they choose to do so.
if self.settings.get('ssoMode') == EsiSsoMode.CUSTOM or self.settings.get('loginMode') == EsiLoginMethod.SERVER:
with gui.ssoLogin.SsoLoginServer(6461 if self.settings.get('ssoMode') == EsiSsoMode.CUSTOM else 0) as dlg:
if self.settings.get('loginMode') == EsiLoginMethod.SERVER:
with gui.ssoLogin.SsoLoginServer(0) as dlg:
dlg.ShowModal()
else:
with gui.ssoLogin.SsoLogin() as dlg:

View File

@@ -144,7 +144,7 @@ class EsiAccess:
args = {
'response_type': 'code',
'redirect_uri': 'http://127.0.0.1:5500/callback.html',
'redirect_uri': config.SSO_CALLBACK,
'client_id': self.client_id,
'scope': ' '.join(scopes),
'code_challenge': code_challenge,