Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Handle push type factor #14

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

tlunter
Copy link
Contributor

@tlunter tlunter commented Apr 15, 2017

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.

@clocklear
Copy link

Looks good to me. @rv-thopkins?

@ghost
Copy link

ghost commented Jun 6, 2017

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.

@ghost ghost mentioned this pull request Jun 13, 2017
}

func findTokenFactor(factors []OktaMfaFactor, factorType string) (*OktaMfaFactor, error) {
var tokenFactor *OktaMfaFactor
for _, factor := range factors {
Copy link

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.

Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants