Endpoint to get user permissions by a given token #7

Open
opened 2026-06-22 14:52:03 +02:00 by kalipso · 0 comments
Owner

To protect certain routes in the frontend we need to now the given user permissions only by the current request.
The request only contains the bearer token, so for middleware we need an api endpoint that allows us to fetch user data with the given token.

I suggest implementing /users/current that returns the user for the given Authorization header.

To protect certain routes in the frontend we need to now the given user permissions only by the current request. The request only contains the bearer token, so for middleware we need an api endpoint that allows us to fetch user data with the given token. I suggest implementing `/users/current` that returns the user for the given Authorization header.
ahtlon was assigned by kalipso 2026-06-22 14:53:08 +02:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: malobeo/gatekeeper#7