Skip to content

Commit

Permalink
Added sleep to second factor step to avoid hammering the Okta factor …
Browse files Browse the repository at this point in the history
…API.
  • Loading branch information
Justin Wiley committed Nov 16, 2019
1 parent 051864f commit e5165a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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.1.0'
version = '2.1.1'
1 change: 1 addition & 0 deletions gimme_aws_creds/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def stepup_auth(self, embed_link, state_token=None):
flow_state = self._get_initial_flow_state(embed_link, state_token)

while flow_state.get('apiResponse', {}).get('status') != 'SUCCESS':
time.sleep(0.5)
flow_state = self._next_login_step(
flow_state.get('stateToken'), flow_state.get('apiResponse'))

Expand Down

0 comments on commit e5165a9

Please sign in to comment.