"Return to Login Page" url customization

This topic has 14 replies, 5 voices, and was last updated 4 years, 7 months ago by grk.

  • Author
    Posts
  • #8783
     Firos
    Participant

    I need to customize “Return to Login Page” URL (after password reset), how to do that?

    #8794
     Scott Heger
    Participant

    Are you using the legacy password reset or the newer REST based password reset flow?

    #8797
     Firos
    Participant

    “Return to Login Page” URL from XUI

    #8798
     Firos
    Participant

    And it should be difirent for realms

    #9033
     Firos
    Participant

    Scott Heger,

    I am using,
    “/sso/XUI/?realm=myRealm#passwordReset/”
    and
    “/sso/XUI/#continuePasswordReset/myRealm”

    pages for password reset.

    This page contains “Return to Login Page” link.
    When i click the link, it goes to “/sso/XUI/#login/myRealm”.
    Instead of that i would like to give “http://www.myRealm.com/login”

    How to achieve this ?

    #9120
     Firos
    Participant

    Customized “Return to Login Page” url inside “AnonymousProcessWrapper.html” as,

    This page contain “common.user.returnToLoginPage” to show login text.
    Where located “common.user.returnToLoginPage” ?

    Change made here will affect all realms, how to make it Realm specific ?

    #9231
     Firos
    Participant

    Scott,

    Got solution.

    1. create a folder called relam1 under openam/XUI/reaml1
    2. copy css and templates folders from XUI to XUI/realm1
    3. Change URL in “XUI/realm1/templates/user/AnonymousProcessWrapper.html”
    4. Specify path to “realm1” in “config/themeconfig.json”

    #9238
     skarmakar
    Participant

    Hi Firos,
    Another workaround is to use different FQDN for different realm. In this case, you do not need to edit the html for login URL.

    #9289
     Firos
    Participant

    Where/how to use different FQDN for different realm ?

    #9306
     skarmakar
    Participant

    Hi Firos,

    Do the following to set realm/DNS alias for realm/DNS
    1.Login to OpenAM as administrator if required.
    2.Go to Access Control Tab > realm1
    3.Add the following FQDN for Realm DNS/Aliases:
    realm1.example.com
    4.save your work

    Make sure you add the entry for realm1.example.com in your hosts file.

    Now do the site configuration with this FQDN. Follow the link below

    https://backstage.forgerock.com/#!/docs/openam/12.0.0/install-guide#configure-site-after-installation

    #20987
     ThiruJay
    Participant

    Can anybody tell me the Return to Login Page that is displayed during the time we input new password and confirm it. (/sso/XUI/#continuePasswordReset/myRealm) , I need to disable this.

    #20997
     grk
    Participant

    Remove or comment out below from templates/user/AnonymousProcessWrapper.html

    {{t “common.user.returnToLoginPage”}}

    Thanks,
    Ravikumar

    #20998
     grk
    Participant

    Sorry, some html content was missing from earlier post. Remove/comment out last line (a tag with id=”anonymousProcessReturn”) to from templates/user/AnonymousProcessWrapper.html

    Thanks,

    #21001
     ThiruJay
    Participant

    This actually removed the “Return on Login” from email sent page which I need to return to screen for entering username and password but did NOT remove Reset password screen , I can still see “Return to Login ” there , as you this page is loaded by clicking on the link that we receive in email. I need to remove this “return to Login” from this screen and clicking on this will not redirect to the application page but will load profile.

    #21011
     grk
    Participant

    Remove a tag from templates/user/AnonymousProcessWrapper.html and add it whereever required.

    If you want “Return to Login” in password reset page (XUI/#passwordReset/) where user enters username/email to receive email, add a tag in XUI/templates/user/process/reset/userQuery-initial.html

    If you want “Return to Login” in email sent confirmation page, add a tag in XUI/templates/user/process/reset/emailValidation-validateCode.html

    If you want “Return to Login” in successful reset confirmation page (XUI/#continuePasswordReset/) , add a tag in XUI/templates/user/process/reset/resetStage-end.html OR XUI/templates/user/process/GenericEndPage.html

    removing from AnonymousProcessWrapper.html and adding in above 3 places, you will see “Return to Login” in all places except in page where user enters new password/confirm password by clicking the link received in email.

    Since removing a tag from AnonymousProcessWrapper.html removes “Return to Login” link from Forgot Username flow as well, you need to find appropriate pages under XUI/templates/user/process/username/ to add a tag.

    Thanks,

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?