POST api/v1/auth/refresh-token
Method to get a new token based in refresh_token
Request Information
URI Parameters
None.
Body Parameters
Refresh Token
ConsincoRefreshTokenBindingModelName | Description | Type | Additional information |
---|---|---|---|
refresh_token |
Refresh token from last Response of /login service. |
string |
None. |
grant_type |
Grant type of Refresh Token (OPTIONAL, default value is 'refresh_token') |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "refresh_token": "sample string 1", "grant_type": "sample string 2" }
application/xml, text/xml
Sample:
<ConsincoRefreshTokenBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AuthenticationServer.Models"> <ControllerVersion>3</ControllerVersion> <GrantType>sample string 2</GrantType> <Refreshtoken>sample string 1</Refreshtoken> </ConsincoRefreshTokenBindingModel>
Response Information
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- InternalServerError (500)
Resource Description
New TokenResponse
TokenResponseName | Description | Type | Additional information |
---|---|---|---|
access_token | string |
None. |
|
token_type | string |
None. |
|
expires_in | string |
None. |
|
refresh_token | string |
None. |
|
username | string |
None. |
|
id | integer |
None. |
|
name | string |
None. |
|
userSequence | integer |
None. |
|
userCode | string |
None. |
|
ADUser | string |
None. |
|
permissionRole | string |
None. |
|
company | string |
None. |
|
companyType | string |
None. |
|
isExt | boolean |
None. |
|
loginId | string |
None. |
|
.issued | date |
None. |
|
.expires | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "<accessToken>k__BackingField": "sample string 1", "<tokenType>k__BackingField": "sample string 2", "<expiresIn>k__BackingField": "sample string 3", "<refreshToken>k__BackingField": "sample string 4", "<userName>k__BackingField": "sample string 5", "<id>k__BackingField": 6, "<name>k__BackingField": "sample string 7", "<seqUser>k__BackingField": 8, "<userCode>k__BackingField": "sample string 9", "<ADUser>k__BackingField": "sample string 10", "<permissionRole>k__BackingField": "sample string 11", "<company>k__BackingField": "sample string 12", "<companyType>k__BackingField": "sample string 13", "<isExt>k__BackingField": true, "<loginId>k__BackingField": "sample string 15", "<issued>k__BackingField": "2025-01-09T01:56:03.2714334-03:00", "<expires>k__BackingField": "2025-01-09T01:56:03.2714334-03:00" }
application/xml, text/xml
Sample:
<TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kike.Security.Data.Dto"> <_x003C_ADUser_x003E_k__BackingField>sample string 10</_x003C_ADUser_x003E_k__BackingField> <_x003C_accessToken_x003E_k__BackingField>sample string 1</_x003C_accessToken_x003E_k__BackingField> <_x003C_companyType_x003E_k__BackingField>sample string 13</_x003C_companyType_x003E_k__BackingField> <_x003C_company_x003E_k__BackingField>sample string 12</_x003C_company_x003E_k__BackingField> <_x003C_expiresIn_x003E_k__BackingField>sample string 3</_x003C_expiresIn_x003E_k__BackingField> <_x003C_expires_x003E_k__BackingField>2025-01-09T01:56:03.2714334-03:00</_x003C_expires_x003E_k__BackingField> <_x003C_id_x003E_k__BackingField>6</_x003C_id_x003E_k__BackingField> <_x003C_isExt_x003E_k__BackingField>true</_x003C_isExt_x003E_k__BackingField> <_x003C_issued_x003E_k__BackingField>2025-01-09T01:56:03.2714334-03:00</_x003C_issued_x003E_k__BackingField> <_x003C_loginId_x003E_k__BackingField>sample string 15</_x003C_loginId_x003E_k__BackingField> <_x003C_name_x003E_k__BackingField>sample string 7</_x003C_name_x003E_k__BackingField> <_x003C_permissionRole_x003E_k__BackingField>sample string 11</_x003C_permissionRole_x003E_k__BackingField> <_x003C_refreshToken_x003E_k__BackingField>sample string 4</_x003C_refreshToken_x003E_k__BackingField> <_x003C_seqUser_x003E_k__BackingField>8</_x003C_seqUser_x003E_k__BackingField> <_x003C_tokenType_x003E_k__BackingField>sample string 2</_x003C_tokenType_x003E_k__BackingField> <_x003C_userCode_x003E_k__BackingField>sample string 9</_x003C_userCode_x003E_k__BackingField> <_x003C_userName_x003E_k__BackingField>sample string 5</_x003C_userName_x003E_k__BackingField> </TokenResponse>