Skip to Main Content

ORDS, SODA & JSON in the Database

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!

Receive a token in ORDS APEX with curl

Martin L.Jun 13 2017 — edited Jun 14 2017

Hi,

Does anybody have worked with the ORDS in APEX and the oauth2 authentication ?

I follow this example for ORDS in the Database and everything's working fine.

https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-authentication

When i'm trying to do the same thing in ORDS in APEX, i'm stuck where i'm calling the oauth/token to receive a token

ORDS :

curl -i -k --user CLIENT_ID:CLIENT_SECRET --data "grant_type=client_credentials" https://localhost:8080/ords/my_user/oauth/token

ORDS APEX:

curl -i -k --user CLIENT_ID:CLIENT_SECRET --data "grant_type=client_credentials" https://localhost:8080/ords/sandbox/oauth2/token

When i'm calling the link https://localhost:8080/ords/sandbox/oauth2/token  in a url, i get a 404 Not Found.

Anybody knows the equivalent to oauth/token in ORDS APEX ?

Thanks in advance,

Martin

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2017
Added on Jun 13 2017
2 comments
1,612 views