Fixes okta authentification

This commit is contained in:
Agris Dumins
2022-03-30 09:55:11 +03:00
committed by GitHub
parent f88beb9d07
commit 7128b2996f
+2 -2
View File
@@ -361,8 +361,8 @@ def get_state_token(conf, c):
def get_redirect_url(conf, c, current_url=None): def get_redirect_url(conf, c, current_url=None):
# type: (Conf, str, Optional[str]) -> Optional[str] # type: (Conf, str, Optional[str]) -> Optional[str]
rx_base_url = re.search(r'var\s*baseUrl\s*=\s*\'([^\']+)\'', c) rx_base_url = re.search(r'"baseUrl":"([^"]+)",', c)
rx_from_uri = re.search(r'var\s*fromUri\s*=\s*\'([^\']+)\'', c) rx_from_uri = re.search(r'"fromUri":"([^"]+)",', c)
if not rx_from_uri: if not rx_from_uri:
dbg(conf.debug, 'not found', 'formUri') dbg(conf.debug, 'not found', 'formUri')
return None return None