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: OP prompts for logout when no OP session #1517

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

dopry
Copy link
Contributor

@dopry dopry commented Oct 8, 2024

The OAuth provider is prompting users who no longer have an user session with the OAuth Provider to logout of the OP. This happens in scenarios given the user has logged out of the OP directly or via another client. In cases where the user does not have a session on the OP we should not prompt them to log out of the OP as there is no session, but we should still clear out their tokens to terminate the session for the Application.

I also renamed a test that used expired_session in the name to without_op_session. I believe that was their original intent, @tonial can you confirm?

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

@dopry dopry force-pushed the fix/logout-prompt-when-no-op-session branch from 0211253 to b14a663 Compare October 8, 2024 15:02
The OAuth provider is prompting users who no longer have an user session
with the OAuth Provider to logout of the OP. This happens in scenarios
given the user has logged out of the OP directly or via another client.
In cases where the user does not have a session on the OP we should not
prompt them to log out of the OP as there is no session, but we should
still clear out their tokens to terminate the session for the Application.
@dopry dopry force-pushed the fix/logout-prompt-when-no-op-session branch from b14a663 to 54e9d14 Compare October 9, 2024 13:52
@dopry dopry marked this pull request as ready for review October 9, 2024 14:11
@dopry dopry requested review from n2ygk and tonial October 9, 2024 14:11
@n2ygk n2ygk merged commit 59bd7af into jazzband:master Oct 9, 2024
19 checks passed
@dopry dopry deleted the fix/logout-prompt-when-no-op-session branch October 9, 2024 17:51
@tonial
Copy link
Contributor

tonial commented Oct 10, 2024

@dopry yes, that was the case i was covering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants