uchicago / shibboleth-oidc

OpenID Connect support for the Shibboleth Identity Provider v3
Apache License 2.0
81 stars 19 forks source link

Impossible to refresh tokens #57

Open psagne opened 6 years ago

psagne commented 6 years ago

I have configured a client, with the scope "offline_access".

I call the authorize endpoint with this scope, and the response_type set as "code".

I can get a token and a refresh token when calling the token endpoint.

But when I try to refresh the token, with the refresh_token I received, I always get an error saying "Bad refresh token".

I see nothing related to this error in the shibboleth logs.

The call I make to refresh the token is like : curl -X POST -d "client_id=my-client-id&client_secret=my-secret&grant_type=refresh_token&refresh_token=THE_REFRESH_TOKEN_I_RECEIVED&redirect_uri=http%3A%2F%2Flocalhost%2Fcallback" https://my-idp-address/idp/profile/oidc/token

psagne commented 6 years ago

Am I the only one facing this problem? Was the token refresh working when you were testing?