[hero_proxy] Auto-inject users.<username> claim for all authenticated users #36
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_proxy#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
There is no automatic claim injected for authenticated users. We need
a default claim
users.<username>to be automatically set by the proxyfor every logged-in user, so that applications can restrict users to
only managing their own data without needing custom logic.
Example
User
mahmoudlogs in → proxy automatically injects claimusers.mahmoudas an HTTP header to all backend requests.
Backend can then check: if claim starts with
users.→ user can onlyedit resources matching that username.
Requirements
users.<username>claimAcceptance Criteria
users.<username>claim injected automatically on every authenticated request