Forum Stats

  • 3,677,760 Users
  • 2,408 Discussions
  • 2,140 Comments
Group

Sample Code for Data Capture Microservice Access

Here is a sample request to generate a token for accessing ec-dc-svc (data capture micro service):

 

curl

--location --request POST

'https://<host>/ms_oauth/oauth2/endpoints/<tenant_id>_oracle/tokens?grant_type=password&username=<tenant_id>.<username>&password=<password>&scope=<tenant_id>.ec-dc-svc.all%20<tenant_id>.iams_userprofile.read'

\

--header 'Authorization: Basic <ClientID/Secret>'

 

Response:

{

   "expires_in": 600,

   "token_type": "Bearer",

   "access_token": "<token>"

}

 From my colleague Praveen Mangu...