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

Error messages from OKTA SDK are empty in Security question enrollment cases #196

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

Comments

@PranithaReddyAedla
Copy link

Describe the bug?

  1. While enrolling to security question, if user enters a answer which is below 4 characters expecting a error message "The security question answer must be at least 4 characters in length" along with exception.
    Browser response - https://jsonblob.com/1075714156497485824
    image

  2. While enrolling to security question, if user tries to create a custom question using "Create Own Question" and enters same text for both question textbox and answer textbox expecting an error message "Fields must not match" along with exception.

image

What is expected to happen?

  1. While enrolling to security question, if user enters a answer which is below 4 characters expecting a error message "The security question answer must be at least 4 characters in length" along with exception.

  2. While enrolling to security question, if user tries to create a custom question using "Create Own Question" and enters same text for both question textbox and answer textbox expecting an error message "Fields must not match" along with exception.

What is the actual behavior?

In both cases we are getting null or empty string for error message in response.

Reproduction Steps?

  1. Try enrolling security question after primary authn (authenticateasync) and MFA using
  • Enroll factor load method : SelectAuthenticatorAsync(); and then
  • Enroll verify method : EnrollAsync();
    Payload for EnrollAsync : {
    Answer = answer,
    QuestionKey = questionKey,
    Question = questionfromoktaquestions
    };
    Response of EnrollAsync : https://jsonblob.com/1075719641854394368, expecting "The security question answer must be at least 4 characters in length" error message.
  1. Try enrolling security question after primary authn (authenticateasync) and MFA with custom question(where answer is matching question) using
  • Enroll factor load method : SelectAuthenticatorAsync(); and then
  • Enroll verify method : EnrollAsync();
    Payload for EnrollAsync : {
    Answer = answermatchingwithquestion,
    QuestionKey = custom,
    Question = customquestionfromuser
    };
    Response of EnrollAsync : https://jsonblob.com/1075720491280646144 , expecting "Fields must not match" error message.

Message is empty in both cases
image

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