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
    Posts
  • #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
    http://openam.example.com:8080/OpenAM-12.0.0/XUI/confirm.html?confirmationId=3ATRzY03Tery8kiAgV0WgSuxH28=&[email protected]&tokenId=ov5HxemCPU7cISrVR+bW1oszuZM=&realm=/
    and obtain the information in the link to call
    REST API
    https://openam.example.com:8080/OpenAM-12.0.0/json/users?_action=anonymousCreate
    in my application.
    In http://docs.forgerock.org/en/openam/12.0.0/dev-guide/
    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
    Thank
    Dung

    #4595
     Rogerio Rondini
    Participant

    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.
    

    At.
    Rogerio Rondini

    #4604

    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.
    Thanks

    #4610
     Rogerio Rondini
    Participant

    Hi,

    Supposed that your application is “http://myapp.example.com/site”. You can create a custom confirmation page like “http://myapp.example.com/site/confirmation.jsp” (or php, or whatever..). You can go to OpenAM User Registration config and add “http://myapp.example.com/site/confirmation.jsp” 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.

    Abs.
    Rogerio Rondini

    #4611

    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

    Thanks

    #4612
     Rogerio Rondini
    Participant

    Hi..

    Did you checked the following link ?
    https://forgerock.org/2015/01/openam-12-social-authentication/

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

    Abs.
    Rogerio Rondini

    #4614

    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: //openam.example.com: 8080 / openam / missions / Home
    My page: http: //mywebsite.com in my site login button with facebook
    Thanks
    Dung.

    #6722
     twatson
    Participant

    Hi,

    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.

    Thurston

    #6767
     Peter Major
    Moderator

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

    #6787
     twatson
    Participant

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

    Thank you very much

    Thurston

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?