POST Account/RegisterExternalToken

Function is used to Register as well as Login from external providers. If user is not found, this call will register the user as well provider options are Facebook and Strava

Request Information

URI Parameters

None.

Body Parameters

RegisterExternalTokenBindingModel
NameDescriptionTypeAdditional information
Email

string

None.

Token

string

Required

Provider

string

Required

Provider_Key

If no email account is available (sometimes facebook users register with other means), please fill in Provider_Key This provider key will become the username in the backend. In future, we will allow for user to later on change his username, which will provide him with the ability to logon with normal username and password, or still with his facebook account

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "Token": "sample string 2",
  "Provider": "sample string 3",
  "Provider_Key": "sample string 4"
}

application/xml, text/xml

Sample:
<RegisterExternalTokenBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models">
  <Email>sample string 1</Email>
  <Provider>sample string 3</Provider>
  <Provider_Key>sample string 4</Provider_Key>
  <Token>sample string 2</Token>
</RegisterExternalTokenBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.