Link a Social Account to an Existing User

post

/oauth2/v1/sdk/MySocialAccountLinker

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

302 Response

Redirect to the social identity provider

400 Response

Invalid request

401 Response

Unauthorized client

500 Response

Internal Server Error
Back to Top

Examples

The following example shows how to initiate the flow to link a Social Account to an existing user in Oracle Identity Cloud Service by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

cURL Command

Note:

The command in this example uses the URL structure https://internal-idcs-url/resource-path, where internal-idcs-url represents the Identity Service URL, and the resource path represents the Identity Service API. See Send Requests for the appropriate URL structure to use.
curl
-X POST
-H "Content-Type:application/x-www-form-urlencoded"
https://tenant-base-url/oauth2/v1/sdk/MySocialAccountLinker

Example of Request Body

The following shows an example of the request body:

authorization=Bearer+eyJ4NXQjUzI1Ni.....yp1KVeRfxJcD9-vkw&idp_name=Facebook

Example of Response Body

The following example shows the redirect URL sent in response:

https://www.facebook.com/dialog/oauth?client_id=708186625985830&display=page&redirect_uri=https://tenant1.idcs.internal.oracle.com:8943/oauth2/v1/social/callback&scope=email,public_profile&state=PAzJaG0cwinOi-57CN_lYQ
Back to Top