mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-18 09:13:26 +03:00
fix: tokens issued with refresh token flow don't contain groups (#989)
Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
committed by
GitHub
parent
4f0b434c54
commit
fe5917d96d
@@ -474,7 +474,7 @@ func (s *OidcService) createTokenFromRefreshToken(ctx context.Context, input dto
|
|||||||
var storedRefreshToken model.OidcRefreshToken
|
var storedRefreshToken model.OidcRefreshToken
|
||||||
err = tx.
|
err = tx.
|
||||||
WithContext(ctx).
|
WithContext(ctx).
|
||||||
Preload("User").
|
Preload("User.UserGroups").
|
||||||
Where(
|
Where(
|
||||||
"token = ? AND expires_at > ? AND user_id = ? AND client_id = ?",
|
"token = ? AND expires_at > ? AND user_id = ? AND client_id = ?",
|
||||||
utils.CreateSha256Hash(rt),
|
utils.CreateSha256Hash(rt),
|
||||||
|
|||||||
Reference in New Issue
Block a user