HOW TO Intercept the HTTP GET request to this URL when the user clicks the link.

This topic has 9 replies, 4 voices, and was last updated 6 years, 6 months ago by twatson.

  • Author
  • #4587

    HI all
    I have problem ,
    I want to register users openam use application,
    REST API call returns 1 then openAM link on email
    when the link was clicked, it appears the registration form of openAM
    I want to stop when the user clicks the link in the email on Webbrowser[email protected]&tokenId=ov5HxemCPU7cISrVR+bW1oszuZM=&realm=/
    and obtain the information in the link to call
    in my application.
    I see : Intercept the HTTP GET request to this URL when the user clicks the link.
    But I can’t do it
    Please help me

     Rogerio Rondini

    Hi Dung,

    You can configure a your own custom confirmation page. In the self-registration (see snippet of documentation below) you can change default “confirm.html” page by an custom page in you application. In this sense, you don`t need to intercept because OpenAM will send the link of your application.

    You must enable self-registration in the User Self Service service. You can configure these globally in OpenAM console at Configure > Global > User Self Service. On the User Self Service page, click the Enabled checkbox next to Self-Registration for Users, and then click Save.
    At this point users can self-register. The starting screen for self-registration is at /XUI/#register/ under the base URL where OpenAM is installed. The default confirmation URI is /XUI/confirm.html.

    Rogerio Rondini


    Hi Rogerio Rondini
    I know openaM have send to the link of my page , but i don’t understant “Link of application”
    Please help me
    I want then click link from gmail and show page register on my application.

     Rogerio Rondini


    Supposed that your application is “”. You can create a custom confirmation page like “” (or php, or whatever..). You can go to OpenAM User Registration config and add “” as confirmation page.

    OpenAM will send that link in the email. When user click on the link, it will submit a request to your “confirmation.jsp”. Inside the “confirmation.jsp”, you can write a code to extract parameters from request and call other REST service as you need.

    Rogerio Rondini


    hi Rogerio Rondini
    Thanks for your help
    now i was control it.

    , and now i want to used oauth2 facebook wit my application or website
    i have create app in facebook , and config oauth2.0 with facebook
    but i don’t know create client (application or website ) login to facebook and save user to database
    if you know. please help me
    i want to see source of one page have one button login to facebook and save user to database


     Rogerio Rondini


    Did you checked the following link ?

    Basically, you will need to configure OAuth2 Authentication Module in OpenAM.

    Rogerio Rondini


    hi Rogerio Rondini
    i know use social networks
    and configurations but your links are with openam social login and use code openam
    I want to create a new page
    For example:
    OpenAm: http: // 8080 / openam / missions / Home
    My page: http: // in my site login button with facebook



    I am trying to configure OpenAM’s self-registration email URL to be a custom page in my application. I have made the change in the Configuration->Global->User Self Service to use my URL for my website and whenever I make the REST call to register, the email I get back still has the original URL of the following form http://openam/XUI/confirm.html?, where it should have been what I typed User Self Service screen.

    We are using version 12.0.0, is there a patch that we need? One person in the chain said this works, what version are you using?

    Any help is greatly appreciated.


     Peter Major

    You should really change the realm specific settings, so go to Access Control – – Services – User Self Service page and make your changes there.


    Thank you, I has missed adding the query parameter for the realm to the REST call. It works!

    Thank you very much


Viewing 10 posts - 1 through 10 (of 10 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?