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 authentication middleware for routes and ALLOWED_HANDLES restrictions #53

Merged
merged 6 commits into from
Mar 4, 2024

Conversation

ajhenry
Copy link
Contributor

@ajhenry ajhenry commented Mar 1, 2024

This adds a middleware for verifying sessions for all of the routes in the server.

This also adds an env configuration called ALLOWED_HANDLES which is a comma separated list of handles you want to restrict access to

@ajhenry ajhenry requested a review from a team as a code owner March 1, 2024 21:39
Copy link
Contributor

@dangoor dangoor left a comment

Choose a reason for hiding this comment

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

This all looks reasonable to me

@ajhenry ajhenry merged commit aa11bf5 into github-community-projects:main Mar 4, 2024
4 checks passed
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