Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in Okta verify enrollment with email/phone resend action #197

Open
PranithaReddyAedla opened this issue Feb 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@PranithaReddyAedla
Copy link

Describe the bug?

In Okta Verify Enrollment when user try to enroll with email/phone and clicks on "send again" for email/phone using ResendCodeAsync(); method in SDK, is sending link again but after that it is throwing the following exception.

Exception :{"Unexpected remediation step: Expected 'enroll-authenticator' but received ['enroll-poll,select-enrollment-channel,select-authenticator-enroll'].\n Verify that your policies are configured as expected."}

Browser response for same case (idp/idx/challenge/resend endpoint) : https://jsonblob.com/1073183131825356800

What is expected to happen?

Expecting a valid response instead of exception after link is sent so that it can be proceeded to enrollment smoothly. Now enrollment is abruptly stopped due to exception.

What is the actual behavior?

Getting an exception instead of valid response after sms/link is sent as expected to users phone or email when send again is clicked while enrolling for Okta verify using phone/email instead of scanning QR. This is resulting in failure of Okta verify factor enrollment.

Reproduction Steps?

  1. Try enrolling Okta verify using PHONE/EMAIL instead of QR code scanning by clicking on can't scan.
  2. Call EnrollAuthenticatorAsync() with sms or email respectively using below payload.
    Payload : var selectChallengeViaText = new EnrollOktaVerifyAuthenticatorOptions
    {
    Channel = "sms",
    PhoneNumber = phoneNumber
    };
    Link to phone/email will be send successfully.
  3. If user does not respond and enroll using link within 30 secs, send again will be prompted.
  4. Now when send again is clicked by hitting ResendCodeAsync() and no payload.
  5. Link to phone/email will be send again successfully but gets and exception which results in breaking okta verify enrollment process.

Additional Information?

No response

.NET Version

.NET Core 3.1

SDK Version

Okta.Idx.Sdk 2.2.8 (latest dotnet sdk) and all lower versions as well

OS version

Windows 11 :
BuildNumber Caption OSArchitecture Version
22000 Microsoft Windows 11 Pro 64-bit 10.0.22000

@PranithaReddyAedla PranithaReddyAedla added the bug Something isn't working label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant