diff --git a/gimme_aws_creds/__init__.py b/gimme_aws_creds/__init__.py index 918f7e64..bbc3cd05 100644 --- a/gimme_aws_creds/__init__.py +++ b/gimme_aws_creds/__init__.py @@ -1,2 +1,2 @@ __all__ = ['config', 'okta', 'main', 'ui'] -version = '2.3.2' +version = '2.3.3' diff --git a/gimme_aws_creds/okta.py b/gimme_aws_creds/okta.py index f41ce6b7..0363dfbc 100644 --- a/gimme_aws_creds/okta.py +++ b/gimme_aws_creds/okta.py @@ -87,7 +87,7 @@ def device_token(self): @device_token.setter def device_token(self, device_token): if device_token is not None: - match = re.search('^https://(.*)', self._okta_org_url) + match = re.search(r'^https://(.*)/?', self._okta_org_url) self._http_client.cookies.set('DT', device_token, domain=match.group(1), path='/') def set_username(self, username):