Open simonprice14 opened 4 months ago
I got this problem solved by fixing the following dependencies in my poetry.toml:
django-oauth-toolkit = {git = "https://github.com/jazzband/django-oauth-toolkit.git", rev = "25c6304"}
oauthlib = { git = "https://github.com/oauthlib/oauthlib.git", rev = "f9a07c6" }
I really like the library, so thanks for all the great work.
I am probably doing something wrong here, but I cannot seem to get the ID Token to refresh.
I saw that someone else raised a similar question 1339 and it has been closed as solved, but the answer did not help me.
In my settings file under OAUTH2_PROVIDER, I have
OIDC_ENABLED
set to `True.When I go through the authorization flow and grab a token, i do indeed receive an access, a refresh and an id token,
But when I attempt the refresh, I receive only a new access token
While debugging I added some print statements to
../site-packages/oauth2_provider/views/mixins.py
underOAuthLibMixin.get_oauthlib_core
and it is printing out the followingSo my server class is using the openid server class, which I presume is correct. But should the
server.refresh_grant
not beoauthlib.openid.connect.core.grant_types.refresh_token.RefreshTokenGrant
?What am I doing wrong?
Any guidance would be gratefully received.