Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gimme_aws_creds/okta_classic.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,10 @@ def _build_factor_name(self, factor):
if factor['provider'] == 'DUO':
return factor['factorType'] + ": " + factor['provider'].capitalize()
elif factor['factorType'] == 'push':
return "Okta Verify App: " + factor['profile']['deviceType'] + ": " + factor['profile']['name']
if 'profile' in factor:
return "Okta Verify App: " + factor['profile']['deviceType'] + ": " + factor['profile']['name']
else:
return "Okta Verify App - push verification"
elif factor['factorType'] == 'sms':
return factor['factorType'] + ": " + factor['profile']['phoneNumber']
elif factor['factorType'] == 'email':
Expand Down