Description
After successful authentication,the access token endpoint allows you to access the SureReturns endpoints. The endpoint supports OAuth 2.0 protocol
API Endpoint
Endpoint: https://<tenant_name>.b2clogin.com/<tenant_name>.onmicrosoft.com/b2c_1_signin/oauth2/v2.0/token
Method: GET
Request
"Content-Type: application/x-www-form-urlencoded"
"client_id=<your_client_id>"
"client_secret=<your_client_secret>"
"scope= https://<tenant_name>.onmicrosoft.com/appId/.default"
"grant_type=client_credentials"
Response
Success Response - 200 OK The endpoint will provide a access token value.
Sample Response:
{
"token_type": "Bearer",
"expires_in": 3599,
"ext_expires_in": 3599,
"access_token": "<access_token_value>"
}