OAuth 2.0: unsupported_grant_type
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=