Refreshing an Authenticated Access Token

A refresh token is a string representing the authorization granted to the client by Modulo Risk Manager. When the access token expires, the client refreshes the access token by presenting the refresh token to Modulo Risk Manager.

 

URL

{RMUrl}/APIIntegration/token

 

REQUEST METHOD

POST

 

FORM CONTENT

client_id (Required): Identifier of the client application. This identifier is generated automatically when the application is registered in the Administration module of Modulo Risk Manager.

client_secret (Required): Secret key for the application. This key is generated automatically when the application is registered in the Administration module of Modulo Risk Manager.

grant_type (Required): To refresh access tokens, this field must contain the following value: "refresh_token".

refresh_token (Required): Refresh token provided by Modulo Risk Manager.

 

REQUEST EXAMPLE

POST {WSUrl}/APIIntegration/token HTTP/1.1
Host: <hostname>
Content-Length: 169
Content-Type: application/x-www-form-urlencoded

client_id=37d96bb17f5143169e543cf1579586e3&client_secret=1b4916ce4491419590972130c4735cad&grant_type=refresh_token&refresh_token=C139F99066314BB8D5B36D8FF4153743D79C796C

 

SUCCESS RESPONSE

access_token: Access token provided by Modulo Risk Manager.

token_type: Type of access token provided by Modulo Risk Manager. The only type currently supported is "bearer".

expires_in: Expiration time in seconds of the access token provided by Modulo Risk Manager.

 

SUCCESS RESPONSE EXAMPLE

A JSON object with information on the token that will be used to execute the features the application was authorized to access:

{

"access_token" : "AE22D568E455143D01D0E18EEB725F64A6137DA5",

"tokentype" : "bearer",

"expiresin" : "86400",

}