MCS Connector to ORDS with OAuth2 security
SummaryHow to setup a connector security for a REST API from ORDS with OAuth2 security
I'm using Autonomous Mobile Cloud Enterprise 18.2.5.
I've create REST API's with ORDS. Without security my chatbot and MCS connectors are working correctly.
Now I've protected the ORDS REST API's with OAuth2, with the client credentials flow.
Using the following curl statements, I'm able to get the necessary services:
- curl -i --user clientId:clientSecret --data "grant_type=client_credentials" https://<ords_oauth_uri>/
- curl -i -H"Authorization: Bearer access_token" https://<ords_uri>/
How do I implement this in my connector?
According to the documentation, I need to use the following security policies: