Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  baileym 2 years, 4 months ago.

  • Author
    Posts
  • #17160
     baileym 
    Participant

    I’m having trouble creating an authorization code grant using the OpenAM OAuth2 REST API in OpenAM 13.5.0. The url is:

    http://openam.something.com:8080/OpenAM-13.5.0/oauth2/authorize

    I have included the SSO cookie as a header:
    Cookie iPlanetDirectoryPro=<big_token_string_here>

    The request parameters are:
    ?realm=testRealm
    &scope=test_scope
    &response_type=code
    &decision=Allow
    &client_id=oauthTestClient
    &redirect_uri=http%3A%2F%2Flocal.something.com%3A8081%2Fauthorize

    I can’t find any good curl examples in the admin or dev guides. Has anyone had luck getting the oauth2/authorize endpoint working outside of a browser? (We are attempting to handle the grant creation via an app using Spring’s RestTemplate)

    Thanks!

    #17169
     Frotonis 
    Participant

    Do you have some logs to be able to give you relevant information?

    Maybe there is something which can help.

    Did you change name of your cookie? In this case you have to use cookie “nameofyourcookie” instead of iPlanetDirectoryPro.

    #17174
     baileym 
    Participant

    Unfortunately, there isn’t really any logging for the oauth2 functionality in OpenAM 13.5. We expanded the logging level, and checked the /log and /debug logs, but still didn’t get any clues.

    Yes, we tried both the default iPlanetDirectoryPro cookie name, and our own cookie name. Same results.

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

You must be logged in to reply to this topic.

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