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

onFail Function in Adaptive Authentication Script Not Working #21987

Open
HasiniSama opened this issue Dec 10, 2024 · 0 comments
Open

onFail Function in Adaptive Authentication Script Not Working #21987

HasiniSama opened this issue Dec 10, 2024 · 0 comments

Comments

@HasiniSama
Copy link
Contributor

Description

The onFail function in the adaptive authentication script does not redirect the user to the next authenticator page. Instead, the end user is kept on the same page with an "Authentication Failed" error message.

Screen.Recording.2024-12-10.at.11.05.40.mov

Steps to Reproduce

  1. Set up an Identity Server 7 instance with mail-sending capabilities.
  2. Create an application with the following adaptive authentication configuration:
  • Step 1: Basic
  • Step 2: EmailOTP
  • Step 3: SMSOTP
  1. Use the following script:
 var onLoginRequest = function(context) {
     executeStep(1, {
         onSuccess: function (context) {
             executeStep(2, {
                 onFail: function (context) {
                     executeStep(3);
                 }
             });
         }        
     });
 };
  1. Log in using valid credentials and provide an invalid Email OTP.

Expected Behavior:
The user should be redirected to Step 3 (SMSOTP) upon failing Step 2 (EmailOTP).

Version

7.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant