ServiceNow Refresh Token

coderuv
Tera Contributor

Is it possible to  generating a new refresh token using an old refresh token in Oauth2.0  process  authentication of ServiceNow. Do we have api doc for this ?

 

curl -X POST \
https://<your-instance-name>.service-now.com/oauth_token.do \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=refresh_token&client_id=<your-client-id>&client_secret=<your-client-secret>&refresh_token=<your-old-refresh-token>'

 

I am not getting response  for above curl like this:

 

{ "access_token": "ol_refresh_token",

"token_type": "Bearer",

"expires_in": 3600,

"refresh_token": "new_refresh_token" }

 

0 REPLIES 0