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

change login middleware logic #739

Merged
merged 8 commits into from
Jan 10, 2024
Merged

change login middleware logic #739

merged 8 commits into from
Jan 10, 2024

Conversation

theosanderson
Copy link
Member

@theosanderson theosanderson commented Jan 10, 2024

Changes logic to have a specified list of routes for which login should be forced. Naming change from isPrivate to shouldMiddlewareForceLogin is intentional, because you can also have a private route that maintains privacy in its own way e.g. by saying "Please login to use this feature" if the user is not logged in. (In future we may want to remove some middleware login in favour of that).

Fixes #729

@theosanderson theosanderson added the preview Triggers a deployment to argocd label Jan 10, 2024
@theosanderson theosanderson changed the title change login middleware logic (wip) change login middleware logic Jan 10, 2024
@theosanderson theosanderson added this to the MVP milestone Jan 10, 2024
Copy link
Contributor

@TobiasKampmann TobiasKampmann left a comment

Choose a reason for hiding this comment

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

LGTM

@theosanderson theosanderson merged commit 8eb6756 into main Jan 10, 2024
10 of 11 checks passed
@theosanderson theosanderson deleted the loginmiddlewarechange branch January 10, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Triggers a deployment to argocd
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Some non-existent URLs lead to authentication
2 participants