POST api/Token/openid
登入取得Token
Request Information
URI Parameters
None.
Body Parameters
OpenIDAuth| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
None. |
|
| state | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"code": "sample string 1",
"state": "sample string 2"
}
application/xml, text/xml
Sample:
<OpenIDAuth xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <code>sample string 1</code> <state>sample string 2</state> </OpenIDAuth>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Token| Name | Description | Type | Additional information |
|---|---|---|---|
| access_token | string |
None. |
|
| refresh_token | string |
None. |
|
| expires_in | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"access_token": "sample string 1",
"refresh_token": "sample string 2",
"expires_in": 3
}
application/xml, text/xml
Sample:
<Token xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End"> <access_token>sample string 1</access_token> <expires_in>3</expires_in> <refresh_token>sample string 2</refresh_token> </Token>