POST api/auth/login/social

Authenticates a user using social login providers (e.g., Google, Facebook).

Request Information

URI Parameters

None.

Body Parameters

Social login request containing provider name and ID token.

SocialLoginRequestDTO
NameDescriptionTypeAdditional information
Provider

string

Required

IdToken

string

Required

DeviceIdentifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "provider": "sample string 1",
  "idToken": "sample string 2",
  "deviceIdentifier": "sample string 3"
}

application/xml, text/xml

Sample:
<SocialLoginRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <DeviceIdentifier>sample string 3</DeviceIdentifier>
  <IdToken>sample string 2</IdToken>
  <Provider>sample string 1</Provider>
</SocialLoginRequestDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Authentication result with JWT token and user profile if successful, or error message if failed.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.