POST services/token

Request Information

URI Parameters

None.

Body Parameters

TokenQueryParameters
NameDescriptionTypeAdditional information
client_id

string

None.

client_secret

string

None.

grant_type

string

None.

code

string

None.

redirect_uri

string

None.

state

string

None.

nonce

string

None.

Request Formats

application/json, text/json

Sample:
{
  "client_id": "sample string 1",
  "client_secret": "sample string 2",
  "grant_type": "sample string 3",
  "code": "sample string 4",
  "redirect_uri": "sample string 5",
  "state": "sample string 6",
  "nonce": "sample string 7"
}

text/html

Sample:
{"client_id":"sample string 1","client_secret":"sample string 2","grant_type":"sample string 3","code":"sample string 4","redirect_uri":"sample string 5","state":"sample string 6","nonce":"sample string 7"}

application/xml, text/xml

Sample:
<TokenQueryParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OIDCSSOOperations.Data.Models">
  <client_id>sample string 1</client_id>
  <client_secret>sample string 2</client_secret>
  <code>sample string 4</code>
  <grant_type>sample string 3</grant_type>
  <nonce>sample string 7</nonce>
  <redirect_uri>sample string 5</redirect_uri>
  <state>sample string 6</state>
</TokenQueryParameters>

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 'TokenQueryParameters'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.