Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

BE: Added NestJS ory authentication middleware #122

Merged
merged 7 commits into from
May 11, 2024

Conversation

Jozys
Copy link
Collaborator

@Jozys Jozys commented Apr 24, 2024

No description provided.

Jozys and others added 3 commits April 24, 2024 15:30
- Middleware now returns 401 if user is not logged in instead of redirecting
- Add /cookie request to offer an easier development experience, the client can now authenticate via the cookie request

Signed-off-by: Jozys <joshua@slaar.de>
@Jozys Jozys marked this pull request as ready for review May 11, 2024 09:58
Copy link
Collaborator

@Integraluminium Integraluminium left a comment

Choose a reason for hiding this comment

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

This code looks good.
The middleware should be changed later on, to match only exact paths.

@Integraluminium Integraluminium merged commit 53548ba into dev May 11, 2024
3 checks passed
@Jozys Jozys deleted the backend/auth-middleware branch May 11, 2024 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants