Skip to content

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

Description

@PranithaReddyAedla

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

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