Skip to content

Commit

Permalink
Merge pull request #186 from Nike-Inc/mfa-prompt-fix
Browse files Browse the repository at this point in the history
Trailing forward slash was being consumed as part of the domain name.
  • Loading branch information
Sector95 authored Mar 25, 2020
2 parents 8db01aa + 5f5cc1f commit 0fb2d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gimme_aws_creds/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ['config', 'okta', 'main', 'ui']
version = '2.3.2'
version = '2.3.3'
2 changes: 1 addition & 1 deletion gimme_aws_creds/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0fb2d37

Please sign in to comment.