Skip to content

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

Description

@PranithaReddyAedla

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions