We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b46a18 commit aee7f01Copy full SHA for aee7f01
tokendito/okta.py
@@ -388,12 +388,12 @@ def get_client_id_by_url(url):
388
enduser_url = get_enduser_url(url)
389
if enduser_url:
390
res = HTTP_client.get(enduser_url)
391
- pattern = re.compile(r',clientId:"(?P<clientId>.*?)",')
+ pattern = re.compile(r"(okta\..{8}-.{4}-.{4}-.{4}-.{12})")
392
393
match = pattern.search(res.text)
394
if match:
395
- logger.debug(f"Found clientId: {match.group('clientId')}")
396
- client_id = match.group("clientId")
+ logger.debug(f"Found clientId: {match.group()}")
+ client_id = match.group()
397
398
return client_id
399
0 commit comments