I found the solution:
Add below 2 parameters to servcie.json:
  "generateRefreshToken" : "true",
  "renewRefreshToken" : "true",



He Vincent在 2021年9月15日星期三上午10:24:22 [UTC+8]寫道:

> I tried to refresh toakes as below:
> POST */cas/oidc/token* HTTP/1.1
> Host: server.example.com
> 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",
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/540ed1a4-b28c-449f-b22e-1cc785cd77cdn%40apereo.org.

Reply via email to