Skip to content

Commit

Permalink
Handle case without MFA.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthepsy committed Jul 8, 2022
1 parent 65ddf4a commit a0b2ba6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gp-okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,10 @@ def okta_oie_login(conf, state_handle):
data = {'stateHandle': state_handle, 'identifier': conf.username, 'credentials': {'passcode': conf.password}}
url = '{0}/idp/idx/identify'.format(conf.okta_url)
_, h, j = send_json_req(conf, 'okta', 'idp/idx/identify', url, data)
success = j.get('success')
if success:
rurl = success.get('href')
return rurl
state_handle, rem = okta_oie_parse_response(conf, j)
rem_saa = okta_oie_response_lookup(rem, 'value', 'name', 'select-authenticator-authenticate')
rem_saa_a = okta_oie_response_lookup(rem_saa, 'value', 'name', 'authenticator')
Expand Down

0 comments on commit a0b2ba6

Please sign in to comment.