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

feat: session authentication for smooth browser-specific experence #52

Merged
merged 6 commits into from
Mar 5, 2024

Conversation

EwoutV
Copy link
Contributor

@EwoutV EwoutV commented Mar 5, 2024

Next to JWT authentication, it would be nice to also have session authentication using cookies for a smooth browser-specific experience.

  • The echo view (only available when DEBUG=True in settings.py) now automatically echoes the access and refresh tokens upon successful user authentication. This is convenient for locally testing the application.
  • Refactored CASTokenObtainSerializer for a less confusing authentication flow. When being passed a request context, this serializer now also performs a session authentication next to generating JWT tokens
  • The logout view now also invalidates the authentication session.

@EwoutV EwoutV self-assigned this Mar 5, 2024
@EwoutV EwoutV added this to the Backend milestone milestone Mar 5, 2024
@francisvaut francisvaut merged commit 5060acc into development Mar 5, 2024
2 checks passed
@EwoutV EwoutV deleted the session-auth branch March 7, 2024 21:23
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.

2 participants