From 353af0483d55e0a6f7f410b9b039a8363b0a43c8 Mon Sep 17 00:00:00 2001 From: Justin Wiley Date: Wed, 25 Mar 2020 13:59:27 -0700 Subject: [PATCH 1/3] Trailing forward slash was being consumed as part of the domain name. --- gimme_aws_creds/okta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gimme_aws_creds/okta.py b/gimme_aws_creds/okta.py index f41ce6b7..99a3e1df 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('^https://(.*)/?', self._okta_org_url) self._http_client.cookies.set('DT', device_token, domain=match.group(1), path='/') def set_username(self, username): From 3dc2e9b6635a562f4c59b158e21b23c2a316ec5e Mon Sep 17 00:00:00 2001 From: Justin Wiley Date: Wed, 25 Mar 2020 14:02:20 -0700 Subject: [PATCH 2/3] Version bump. --- gimme_aws_creds/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' From 5f5cc1f0134d8e9c0c56c1492c16a7e497086d74 Mon Sep 17 00:00:00 2001 From: Justin Wiley Date: Wed, 25 Mar 2020 14:08:02 -0700 Subject: [PATCH 3/3] r prefix on string for regex. --- gimme_aws_creds/okta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gimme_aws_creds/okta.py b/gimme_aws_creds/okta.py index 99a3e1df..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):