Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  jitusingh 1 week, 3 days ago.

  • Author
    Posts
  • #22736
     jitusingh 
    Participant

    Hi All,

    I am trying to login in openAm using rest API. I made a curl request which returns me token and success URL, after that when I go to my openAm URL it again saying to log in.

    But I want to see the profile page of the user because it already login using restapi. Please help how I can achieve this.

    • This topic was modified 1 week, 4 days ago by  jitusingh.
    #22739
     Andy Cory 
    Participant

    What do you do with the token you get back from the REST request? Are you presenting it as the value of a correctly named cookie in your next request?

    -Andy

    #22740
     jitusingh 
    Participant

    Hi Andy,

    I am setting token to cookie with name “iPlanetDirectoryPro” and path is “/” with domain name.

    • This reply was modified 1 week, 3 days ago by  jitusingh.
    #22742
     Andy Cory 
    Participant

    That sounds OK. Can you use browser development tools to confirm that the cookie is actually present and correct in the request? If it is, you should increase OpenAM’s logging level and see what appears in the debug logs when you make the request.

    -Andy

    #22744
     jitusingh 
    Participant

    Thanks Andy, I found that the cookie name is case sensitive now It works fine. Thanks for your help.

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

You must be logged in to reply to this topic.

©2018 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?