Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OAM OAuth2 Service fails with Invalid Parameter Value error

2969133Jul 18 2017 — edited Jul 18 2017

On : 11.1.2.3.0 version, OAuth Server

I have followed the http://www.ateam-oracle.com/implementing-oauth-2-with-oracle-access-manager-oauth-services-part-i/ steps to configure a Customer Resource Server and a Client Web Application as follows:

Business Resource Server

Name: Business

Authorization & Consent Service Plug-in: CoherenceAuthzUserConsentPlugin

Scopes: Info

Decription: Reads Business Information

Screenshot from 2017-07-18 19-08-43.png

Business Client

Client ID: businessClient

Client Secret: 3WFLudTFyBk

Bypass User Consent: checked

Allowed Scopes: Business.Info

Grant Types: Client Credentials

Screenshot from 2017-07-18 19-12-09a.png

Screenshot from 2017-07-18 19-12-32b.png

Invoking the service to get the access token gives me the Invalid parameter value error:

curl -i -H "Authorization: Basic YnVzaW5lc3NDbGllbnQ6M1dGTHVkVEZ5Qms=" -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" --request POST http://localhost:14001/ms_oauth/oauth2/endpoints/oauthservice/tokens -d "grant_type=client_credentials&scope=Business.Info"

Screenshot from 2017-07-18 19-19-33d.png

It took me some time to figure out that the scope name must be prefixed with the custom resource server name. So, after updating the scope name everything worked as expected.

Screenshot from 2017-07-18 19-23-39f.png

Screenshot from 2017-07-18 19-24-54g.png

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2017
Added on Jul 18 2017
0 comments
419 views