/signin/oauth_token

This endpoint exchanges a Social Identity Provider OAuth token, or an IDP token for an Identity Cloud Social Login token, which is needed for social registration and login calls using Akamai's OAuth endpoints. This endpoint would be used if you are implementing a solution that authenticates users with an Identity Provider directly and not using a Social Login application.

Accepted Content-types

  • application/x-www-form-urlencoded
  • multipart/form-data

This endpoint includes the following methods:

  • POST


POST

Authentication

No authentication is required to call the /signin/oauth_token endpoint.

Base URL

The base URL for this endpoint is your application domain; for example:

https://educationcenter.rpxnow.com

You can find your application domain in the Social Login (Engage Dashboard) on the Settings page:

Example Request

This command exchanges a sign-in token obtained from Facebook for an Identity Cloud social login token. The social login token can then be used for social registration and login calls by using Akamai's OAuth endpoints.

curl -X POST \
 'https://greg-stemp.rpxnow.com/signin/oauth_token?providername=facebook' \
 -H 'Content-Type: application/json' \
 -d '{
   "provider":"facebook",
   "token": "EAAV6lsQIR0gBAItAtDeUZBbsFiHuTxhLaHLw9TqGDsXK6GQodDfgKXcCkxkZCZBxLKsxsWgV0iZATVAzx2RGlsOIFDIals3ZCblCEJn25pTj4Lk7XZCCEweKkHfHZBPP8B75dXc1BagGjNy8ZBpyObZB8FZCWSK0AAWevv15aEh85lTwZZDD"
  }'
         

      Running this command in Postman

Example Response


{
  "stat":"ok",
  "token":"e96213b7bfddd1884b91544a11b5d5be52316590"
}
                

Example Request: Sign In with Apple

This command exchanges a sign-in token obtained from Sign In with Apple for an Identity Cloud social login token. Note that Sign In with Apple requires you to use the id_token parameter instead of the token parameter.

curl -X POST \
 'https://greg-stemp.rpxnow.com/signin/oauth_token?providername=apple' \
 -H 'Content-Type: application/json' \
 -d '{
   "provider":"apple",
   "id_token": "eyJraWQiOiJBSURPUEsxIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2FwcIFDIals3ZCblCEJn25pTF90aW1lIjoxNTc5NzMyNzU2fQ.J-uEzGb36-o_kQNPuYz8Q_1GP0RGQpjebrmrDZlwA86n859LuXpUvIrDiwPzAHanilCFPergm769XU3xqmb6fHxAdzRNAge3fi5j5YY66N3yjpzGQ2L2B-NcGb56XEPGz"
  }'
         

      Running this command in Postman

Example Response


{
  "stat":"ok",
  "token":"db2778db7b59a03d045b1707dd85ae6fc726eafb"
}
                

Request Parameters

These items are used in the BODY parameter of your API call:

Parameter Type Required Description
token string Yes IDP token from Facebook or Twitter.
 
provider string Yes Social identity provider. Allowed values are:
 
  • facebook
  • ​twitter
  • googleplus
  • apple

Note that, despite the name, the provider parameter does not reference any Google+ endpoints or scopes; the Akamai Identity Cloud no longer supports Google+. Instead, all Google social logins are made through Google Sign-In. The name googleplus has been retained for backwards compatibility.

token-secret string Required when using Twitter as the social login identity provider. 
 
id_token string Required when using Sign In with Apple. Set the value of the id_token parameter to the value of the token returned from your Sign In with Apple app.