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

Add logout endpoint #21

Merged
merged 5 commits into from
Aug 3, 2023
Merged

Add logout endpoint #21

merged 5 commits into from
Aug 3, 2023

Conversation

donaldgray
Copy link
Member

Resolves #20

Added IIIF Authorization 2.0 Logout Service implementation at GET {customerId}/{accessServiceName}/logout.

The path takes customerId and accessServiceName but only uses the former - the accessServiceName will be handled at a later date once we handle multiple session/role-providers (in #10 (comment)).

Upon logout the service will:

  • Mark SessionUser as Expired in database
  • Clear possible cached SessionUser values
  • Issue a new expired cookie for same domains as real cookie

As part of this I refactored SessionManagementService, pulling out common parts to base class and adding SessionCleaner class.

@donaldgray donaldgray marked this pull request as ready for review August 2, 2023 16:27
@donaldgray donaldgray merged commit 11b0ba9 into main Aug 3, 2023
1 check passed
@donaldgray donaldgray deleted the feature/logout branch August 3, 2023 12:36
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.

Handle session logout
2 participants