POST api/Account/External

Add a social login to the user's account

Request Information

URI Parameters

None.

Body Parameters

ExternalProviderModel
NameDescriptionTypeAdditional information
Provider

3rd party authentication provider (google, facebook, twitter)

string

Required

Token

The 3rd party authentication token (JWT or provider-specific token)

string

Required

Secret

For Twitter, the secret corresponding with the token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Provider": "sample string 1",
  "Token": "sample string 2",
  "Secret": "sample string 3"
}

application/xml, text/xml

Sample:
<ExternalProviderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.API.Models">
  <Provider>sample string 1</Provider>
  <Secret>sample string 3</Secret>
  <Token>sample string 2</Token>
</ExternalProviderModel>

multipart/form-data

Sample:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'MultipartMediaTypeFormatter' to write type 'ExternalProviderModel'.

Response Information

Resource Description

PrimitiveOfBoolean
NameDescriptionTypeAdditional information
value

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "value": true
}

application/xml, text/xml

Sample:
<PrimitiveOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.API.Models">
  <value>true</value>
</PrimitiveOfboolean>