[cas 6.3] OIDC- refresh_token is missed when get Refresh Tokens

92 views
Skip to first unread message

He Vincent

unread,
Sep 14, 2021, 10:24:22 PM9/14/21
to CAS Community
I tried to refresh toakes as below:
POST /cas/oidc/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded

client_id=s6BhdRkqt3
&client_secret=some_secret12345
&grant_type=refresh_token
&refresh_token=8xLOxBtZp8
&scope=openid%20profile

The response was like this:
{
    "access_token": "AT-4-xxxxxxxx",
    "id_token": "eyJhbGciOiJSUzI1xxxx",
    "token_type": "bearer",
    "expires_in": 28800,
    "scope": "email openid offline_access profile"
}

There was no refresh_token like :
 "refresh_token": "9yNOxJtZa5",

He Vincent

unread,
Sep 14, 2021, 11:00:52 PM9/14/21
to CAS Community, He Vincent
I found the solution:
Add below 2 parameters to servcie.json:
  "generateRefreshToken" : "true",
  "renewRefreshToken" : "true",



Reply all
Reply to author
Forward
0 new messages