Skip to content

Commit

Permalink
Found another spot to slow our API call to avoid provoking limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Wiley committed Nov 16, 2019
1 parent e5165a9 commit 0e2633d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gimme_aws_creds/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def auth(self):
""" Login to Okta using the authentication API"""
flow_state = self._login_username_password(None, self._okta_org_url + '/api/v1/authn')

while flow_state.get('apiResponse').get('status') != 'SUCCESS':
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 0e2633d

Please sign in to comment.