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 while authenticating with locked out user in Okta #200

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

Comments

@PranithaReddyAedla
Copy link

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

@PranithaReddyAedla PranithaReddyAedla added the bug Something isn't working label Mar 1, 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