Identity Management (MOSC)

MOSC Banner

OAuth 2.0: unsupported_grant_type

edited Jul 3, 2019 2:02AM in Identity Management (MOSC) 1 commentAnswered

Hi all,

I try to check Access Token for one use case, as below:

1- Access token --> OK

curl -i --request POST http://$Host:$Port/ms_oauth/oauth2/endpoints/oauthservice/tokens -H 'Authorization:Basic Zm...dA==' -d 'grant_type=password&username=myuser&password=mypw&scope=UserProfile.me'

2- Authorization --> I use accesstoken from step 1 and client has Grant type for "Authorization Code":

curl -i -H 'Authorization:Basic Zm...A==' -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' -H 'X-OAUTH-IDENTITY-DOMAIN-NAME:DefaultDomain' --request POST 'http://$Host:$Port/ms_oauth/oauth2/endpoints/oauthservice/tokens' -d 'grant_type=AUTHORIZATION_CODE&code=<$Access_Token>&redirect_uri=

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center