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

Fixes #12 and adds support for logout functionality #13

Merged

Conversation

MauriceBrg
Copy link
Collaborator

  • Fixes Redirect after authorization doesn't respect url_base_pathname #12
  • Adds the optional logout_url parameter to the CognitoOAuth class
    • If set, adds a route to Flask that can be used to log the currently active user out of the system, i.e.
    • Invalidate the current session cookie
    • Redirect to the Cognito Logout endpoint so they're logged out for the current app
  • Add end-to-end test for the flow with a path prefix
  • Extend end-to-end tests to cover logout functionality

- Add optional logout_url parameter, if set it will create an endpoint that handles logouts
- Extend end-to-end tests to test logout behavior
@MauriceBrg MauriceBrg merged commit 361cafa into fspijkerman:master Apr 3, 2024
@MauriceBrg MauriceBrg deleted the ft-fix-prefix-bug-add-logout-helper branch April 3, 2024 12:20
@MauriceBrg MauriceBrg linked an issue Apr 3, 2024 that may be closed by this pull request
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.

Redirect after authorization doesn't respect url_base_pathname Logout Feature
1 participant