w.r.t. Oracle REST Data Services (ORDS) : Authentication
And microservices-the-easy-way-with-ords-and-micronaut-part-1
Using PLSQL,
Through below code on SQL developer when tried, I received ORA-20001: Authentication failed
.
BEGIN
APEX_WEB_SERVICE.OAUTH_AUTHENTICATE(
P_TOKEN_URL => 'http://<host:ip>/ords/<schema>/oauth/token',
P_CLIENT_ID => 'xxxxxxxxxxBaDNGqSq1atg..',
P_CLIENT_SECRET => 'xxxxxxxxxx5NlSRSoeJrUw..');
DBMS_OUTPUT.PUT_LINE(APEX_WEB_SERVICE.OAUTH_GET_LAST_TOKEN);
END;
Using Curl,
curl -i -k --user xxxxxxxxxxBaDNGqSq1atg..:xxxxxxxxxx5NlSRSoeJrUw.. --data "grant_type=client_credentials" http://<host ip:port>/ords/<schema>/oauth/token