8000 Unexpected invalid_grant error on offline session refresh when client… by martin-kanis · Pull Request #17490 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Unexpected invalid_grant error on offline session refresh when client… - #17490

Merged
mhajas merged 1 commit into
keycloak:mainfrom
martin-kanis:9959-offline-client-session-loading
Mar 15, 2023
Merged

mhajas merged 1 commit into
keycloak:mainfrom
martin-kanis:9959-offline-client-session-loading

Conversation

@martin-kanis
Copy link
Copy Markdown
Member

… session is not in the cache

Closes #9959

@hmlnarik
hmlnarik requested review from a team and vramik March 8, 2023 09:52
@vramik vramik left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @martin-kanis for the PR! LGTM, I have just one nitpick and one question, Please see inline.

Comment on lines 114 to 118
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: missing description of @params and @return. If it's not needed I'd suggest to remove them.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@stianst
stianst requested a review from mposolda March 10, 2023 08:17
@stianst
stianst commented Mar 10, 2023
Copy link
Copy Markdown
Contributor

I think there should never be more than one client session per offline session, as it's really a bug that you can end up with multiple clients sharing an offline session. Would it be better to change the behaviour to that, which should also fix this issue?

@mposolda @sschu FIY

@hmlnarik
Copy link
Copy Markdown
Contributor

I think there should never be more than one client session per offline session, as it's really a bug that you can end up with multiple clients sharing an offline session. Would it be better to change the behaviour to that, which should also fix this issue?

While I agree that the original intention should be improved, this can be done independently, and I'm still in favour of merging this PR (after resolving all the comments).

@sschu
sschu commented Mar 13, 2023 •
Copy link
Copy Markdown
Contributor

@hmlnarik @stianst Just for completeness, there is also a PR from us (in this case @danielFesenmeyer) who implemented the alternative solution with only one client session per offline user session. #9962

@martin-kanis
martin-kanis force-pushed the 9959-offline-client-session-loading branch from 1f681fa to a33a885 Compare March 14, 2023 12:47
… session is not in the cache

Closes keycloak#9959

Co-authored-by: Martin Kanis <mkanis@redhat.com>
Co-authored-by: Lex Cao <lexcao@foxmail.com>
@vramik vramik left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @martin-kanis. From my point of view LGTM!

@mhajas mhajas left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @martin-kanis, LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/storage Storage layer — JPA entities, database schemas, Liquibase migrations, caching flaky-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected invalid_grant error on offline session refresh when maximum number of offline sessions is configured

6 participants

0