From fd01e7e3696e23c5d8dded2b174f4ccdf55d99ed Mon Sep 17 00:00:00 2001 From: Krzysztof Szyper <45788587+ChristophShyper@users.noreply.github.com> Date: Tue, 29 Jun 2021 09:53:42 +0200 Subject: [PATCH] Fix localhost redirect As proposed by @iniquityx2 here https://github.com/Nike-Inc/gimme-aws-creds/issues/302 --- gimme_aws_creds/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gimme_aws_creds/main.py b/gimme_aws_creds/main.py index 069e7c0c..600e783d 100644 --- a/gimme_aws_creds/main.py +++ b/gimme_aws_creds/main.py @@ -579,7 +579,7 @@ def set_auth_session(self, auth_session): def auth_session(self): if 'auth_session' in self._cache: return self._cache['auth_session'] - auth_result = self.okta.auth_session() + auth_result = self.okta.auth_session(redirect_uri=self.conf_dict.get('app_url')) self.set_auth_session(auth_result) return auth_result