-
Notifications
You must be signed in to change notification settings - Fork 15
Handle push type factor #14
base: master
Are you sure you want to change the base?
Conversation
Looks good to me. @rv-thopkins? |
I think this would be good to support, but I'd like to figure out how to let you specify a specific MFA source, especially for people who have two TOTP sources enabled. May merge this and work on that sometime soonish. Apologies for the delay. |
} | ||
|
||
func findTokenFactor(factors []OktaMfaFactor, factorType string) (*OktaMfaFactor, error) { | ||
var tokenFactor *OktaMfaFactor | ||
for _, factor := range factors { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to let the user pick how they MFA, check out this other project. It steps through all the response and makes a pretty prompt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it'd be nice to present a list of options the first time and let people choose which one they want... or maybe offer an oktad configure
step that sets those things up for people.
Adds support for Okta Verify's Push based 2FA.
This still hits the same endpoint as the original, just doesn't actually send any code. After you've approved the request on your phone, the endpoint will return success.