POST api/OAuth/RefreshAccessToken
Method for refreshing access token with given refresh token.
Request Information
URI Parameters
None.
Body Parameters
Properties needed for getting new token from OAuth2 server.
RefreshTokenCredentialsName | Description | Type | Additional information |
---|---|---|---|
ClientID |
ClientID given by responsible authority. |
string |
Required |
ClientSecret |
Secret code given by responsible authority. |
string |
Required |
RefreshToken |
Refresh token given by eMedit OAuth2 authorization server. |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "clientID": "sample string 1", "clientSecret": "sample string 2", "refreshToken": "sample string 3" }
application/xml, text/xml
Sample:
<RefreshTokenCredentials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMedit.eDoktor.WebApi.Models.Api.OAuth"> <ClientID>sample string 1</ClientID> <ClientSecret>sample string 2</ClientSecret> <RefreshToken>sample string 3</RefreshToken> </RefreshTokenCredentials>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Json object containing access_token, token_type, expires_in, expiresUTC and refresh_token.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.