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

auth - fix login flow #288

Closed
SKairinos opened this issue Feb 9, 2024 · 0 comments
Closed

auth - fix login flow #288

SKairinos opened this issue Feb 9, 2024 · 0 comments
Assignees
Labels

Comments

@SKairinos
Copy link
Contributor

SKairinos commented Feb 9, 2024

The frontend needs to call the backend and successfully log in. This requires storing 2 session cookies, a http-only cookie a non-http-only cookie. The http-only cookie is needed to store the actual session secret for the user and must be http-only for security reasons. The non-http-only is needed to store the session's state, such as is there are any pending auth factors.

Finally, the Page component needs a property "auth" to determine whether or not the user is required to be authenticated to see that page.

@SKairinos SKairinos self-assigned this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants