POST api/ng/account/sociallogin

Request Information

URI Parameters

None.

Body Parameters

SocialUserLoginModel
NameDescriptionTypeAdditional information
id

string

None.

name

string

None.

email

string

None.

photoUrl

string

None.

firstName

string

None.

lastName

string

None.

authToken

string

None.

idToken

string

None.

provider

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "name": "sample string 2",
  "email": "sample string 3",
  "photoUrl": "sample string 4",
  "firstName": "sample string 5",
  "lastName": "sample string 6",
  "authToken": "sample string 7",
  "idToken": "sample string 8",
  "provider": "sample string 9"
}

application/xml, text/xml

Sample:
<SocialUserLoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <authToken>sample string 7</authToken>
  <email>sample string 3</email>
  <firstName>sample string 5</firstName>
  <id>sample string 1</id>
  <idToken>sample string 8</idToken>
  <lastName>sample string 6</lastName>
  <name>sample string 2</name>
  <photoUrl>sample string 4</photoUrl>
  <provider>sample string 9</provider>
</SocialUserLoginModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SocialUserLoginModel'.

Response Information

Resource Description

UserAuthResultModel
NameDescriptionTypeAdditional information
IsAuthenticated

boolean

None.

IsAdmin

boolean

None.

Id

string

None.

Email

string

None.

FirstName

string

None.

LastName

string

None.

PictureUrl

string

None.

ErrorType

UserAuthError

None.

token

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsAuthenticated": true,
  "IsAdmin": true,
  "Id": "sample string 3",
  "Email": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "PictureUrl": "sample string 7",
  "ErrorType": 0,
  "token": "sample string 8"
}

application/xml, text/xml

Sample:
<UserAuthResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <Email>sample string 4</Email>
  <ErrorType>NoError</ErrorType>
  <FirstName>sample string 5</FirstName>
  <Id>sample string 3</Id>
  <IsAdmin>true</IsAdmin>
  <IsAuthenticated>true</IsAuthenticated>
  <LastName>sample string 6</LastName>
  <PictureUrl>sample string 7</PictureUrl>
  <token>sample string 8</token>
</UserAuthResultModel>