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

[DNM] New: [AEA-0000] - Redirect the user if they're not logged in #278

Open
wants to merge 74 commits into
base: main
Choose a base branch
from

Conversation

wildjames
Copy link
Contributor

@wildjames wildjames commented Dec 19, 2024

Summary

  • ✨ New Feature

Details

⚠️ DO NOT MERGE - THIS IS EXAMPLE CODE AND THE FEATURE WILL BE IMPLEMENTED AFTER THE LOGIN/OUT IS FINISHED ⚠️

If the user is not logged in, we currently just let them sit with that.

This updates the behaviour to instead trigger the login flow if the user session is not present, or becomes invalid (e.g. expires). There is some additional logic to handle mock auth. If the deployment is in one of the approved environments (currently, anything but prod), then the user is sent to a login page, which allows signing in with mock or PTL, and signing out. It also displays some debugging information, and the access tokens for people who want to use these elsewhere, e.g. Postman.

kris-szlapa and others added 30 commits December 9, 2024 14:36
## Summary

- ✨ New Feature

### Details
Kris and I are working on similar features - merging my changes into his
branch so that we are synchronised.

Choose a reason for hiding this comment

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

Should rename this file too

@wildjames wildjames changed the title New: [AEA-0000] - Redirect the user if they're not logged in [DNM[ New: [AEA-0000] - Redirect the user if they're not logged in Jan 6, 2025
@wildjames wildjames changed the title [DNM[ New: [AEA-0000] - Redirect the user if they're not logged in [DNM] New: [AEA-0000] - Redirect the user if they're not logged in Jan 6, 2025
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.

4 participants