Obtain ME access_token

POST {{HOST}}/oauth2/v1/token

This request obtains a ME access token.

Use an application that has the Me App Role assigned.

In the Authorization tab add the clientId and secret of the application with the Me App Role assigned.

In the body change {{USER_LOGIN}} and {{PASSWORD}} to the user for whom a ME token is required.

In this example, the user represented by the Me Access token IS NOT required to authenticate via MFA prior to requesting the Me token. A user who requests a Me token where the user IS required to authenticate via MFA first, will receive the following error:

{ error: invalid_grant, error_description: Tenant is MFA enabled. Use Multi-Factor Authentication for all users in this tenant. }

If you wish to authenticate via MFA before getting the Me token, then use a combination of the 'Generate Access Token Using Auth API' in this collection, and 'Authentication Using User Name/Password + MFA Authentication' in the Oracle Identity Cloud Service Authenticate API collection.

Request Body

[{"name"=>"grant_type", "value"=>"password", "datatype"=>"string"}, {"name"=>"scope", "value"=>"urn:opc:idm:__myscopes__", "datatype"=>"string"}, {"name"=>"username", "value"=>"{{USER_LOGIN}}", "datatype"=>"string"}, {"name"=>"password", "value"=>"{{PASSWORD}}", "datatype"=>"string"}]

RESPONSES

status: OK

{"access_token":"eyJ4NXQjUzI1NiI6Iks0R0hvZV...jHAv6SJxiDu9KG5id86HrTw","token_type":"Bearer","expires_in":3600}