Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16568

Ability to set gotoFailureLoginUrl in Server side authentication script

    Details

    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      No (add reasons in the comment)

      Description

      Summary:

      The fix for OPENAM-16338 provides the ability to set a gotoFailureLoginUrl so that any login failure of a scripted module can optionally redirect to a pre-defined url.

      Description:

      The following Server side authentication script snippet illustrates how this can be used:

      // To redirect to the XUI login failed page...
      sharedState.put("gotoOnFailureUrl","/access/XUI/?service=testChain#failedLogin");
      // Alternatively, to redirect to some other absolute url...
      //sharedState.put("gotoOnFailureUrl","http://www.example.com");
      
      authState = FAILED;

      When the scripted module's script has a FAILED authState, the module checks for the sharedState property gotoOnFailureUrl and if present will perform a redirect to that url. Note that for an absolute url, this must also be included in the list of valid redirection urls in the Validation service, otherwise it will be ignored.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cristina.herraz Cristina Herraz
                Reporter:
                lawrence.yarham Lawrence Yarham
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: