Skip to content

Exception while authenticating with locked out user in Okta #200

Description

@PranithaReddyAedla

Describe the bug?

Locked out user status is not handled in okta-idx-dotnet sdk

While authenticating with a locked out user(in Okta) using okta-idx-dotnet sdk with AuthenticateAsync method, instead of valid response with "Locked out" authentication status recieving following exception :

{"Unexpected remediation step: Expected '['challenge-authenticator or select-authenticator-authenticate']' but received ['select-authenticator-unlock-account'].\r\n Verify that your policies are configured as expected."}

Tenant : https://oie-tecnics-dev.oktapreview.com/
Test user of above tenant :

Username : lockeduser, 
Password : Password@123

Note: Attaching a .Net WPF sample project to replicate the issue with above user.
TecnicsSampleProject.zip

What is expected to happen?

Expecting a response with "locked or lockedout" authentication status.

What is the actual behavior?

Getting an exception

Reproduction Steps?

  1. Make user is locked out in Okta.
  2. Authenticate user with okta-idx-dotnet sdk method "AuthenticateAsync()" with payload having both username and password.
  3. Expecting response with "locked/lockedout" status but receiving following exception.
    {"Unexpected remediation step: Expected '['challenge-authenticator or select-authenticator-authenticate']' but received ['select-authenticator-unlock-account'].\r\n Verify that your policies are configured as expected."}

Additional Information?

No response

.NET Version

.NET Core 3.1 and above

SDK Version

Okta IDX Sdk 2.2.8 and all versions below

OS version

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

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