Tagged: ,

This topic has 2 replies, 2 voices, and was last updated 6 years, 10 months ago by yogeshmsharma.

  • Author
    Posts
  • #6968
     yogeshmsharma
    Participant

    Hi I am on 12.0 and using following but not getting refresh_token as described in documentation. what could be issue?

    curl –request POST –user “myClientID:password” –data “grant_type=password&username=yoges&password=yogesh123&scope=cn” http://openam.example.com:8080/openam/oauth2/access_token

    Output

    {“access_token”:”58e9f412-f68d-46f1-aee2-1b68b30d0cad”,”scope”:”cn”,”token_type”:”Bearer”,”expires_in”:59}

    #6971
     Scott Heger
    Participant

    Check your OAuth2 Provider and ensure that the “Issue Refresh Tokens:” option is checked. Keep in mind that per the OAuth 2.0 specification not all grant flows will provide a refresh token, but the one you are using, the “Resource Owner Password Credentials” flow, does.

    #6984
     yogeshmsharma
    Participant

    thanks it worked .

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