Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix refresh token data fixup upgrade when using DefaultPersistedGrantService #1028

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

brockallen
Copy link
Member

Refresh tokens had a format change in v5, and the code to migrate and fixup old records was in the DefaultRefreshTokenStore. But some code, namely the DefaultPersistedGrantService, skips the store and deserializes the payload directly. This was skipping the fixup logic, so this PR moves this fixup logic down into the PersistentGrantSerializer so that both code paths will get the correct behavior.

Fix for: DuendeSoftware/Support#214

@brockallen brockallen added the bug Something isn't working label Sep 20, 2022
@brockallen brockallen added this to the 6.1.6 milestone Sep 20, 2022
@brockallen brockallen changed the base branch from main to releases/6.1.x September 20, 2022 17:50
@brockallen brockallen marked this pull request as ready for review September 23, 2022 15:44
@brockallen brockallen merged commit 3b7c05d into releases/6.1.x Oct 3, 2022
@brockallen brockallen deleted the brock/RT_data_fixup branch October 3, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant