mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
Feature: Replace id_token with refresh token request
#39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cfpwastaken on GitHub.
Reproduction steps
Expected behavior
It should return a new ID Token too, as described in the OIDC specification in section 3.1.3.3.:
Actual Behavior
It omits the id_token from the response
Pocket ID Version
v1.10.0
Database
SQLite
OS and Environment
Docker on Alpine Linux v3.21 (Kernel 6.12.13-0-lts), served through Caddy
Log Output
No response
@cfpwastaken commented on GitHub:
Seconding this ^^
The token might also contain outdated data (user changed their profile). Also, Keycloak for example does return a new id_token on refresh.
@kmendell commented on GitHub:
The id token only holds the user information nothing about the access should it should never become "unusable" technically.
I talked with elias and im going to siwtch this to a feature request and mark it needs more upvotes, as this is a optional part of the spec so if the community wants it we can think about adding it in.
@kmendell commented on GitHub:
Correct, but in the case of a refresh_token in that flow its optional to return a new id_token since its the same sessions just refreshing the tokens for it:
So in short the
id_tokendoes not need to be returned in the refresh token, though it can be if the provider chooses too.@ItalyPaleAle commented on GitHub:
@kmendell should we probably return it however? Since the old id_token may be expired by then and so would be unusable