Skip to content

feat(auth): introduce centralized authorization and access scopes - #31

Merged
devcavin merged 1 commit into
mainfrom
server
Aug 5, 2026
Merged

feat(auth): introduce centralized authorization and access scopes#31
devcavin merged 1 commit into
mainfrom
server

Conversation

@devcavin

@devcavin devcavin commented Aug 5, 2026

Copy link
Copy Markdown
Owner
  • Add AccessScope to separate role permissions from data visibility
  • Introduce AuthorizationService as the central authorization layer
  • Refactor UserService and VisitorService to use centralized access checks
  • Enable global resource access for SUPER_ADMIN while preserving site-scoped restrictions
  • Update VisitorSpecification and repository queries to support scoped filtering
  • Refine DashboardService and ReportService to respect access scope
  • Fix JWT email claim generation
  • Remove deprecated AuthenticatedUser DTO and simplify authentication models

Summary

Refactors the authorization model by introducing explicit access scopes and centralizing authorization decisions.

Closes #29

- Add AccessScope to separate role permissions from data visibility
- Introduce AuthorizationService as the central authorization layer
- Refactor UserService and VisitorService to use centralized access checks
- Enable global resource access for SUPER_ADMIN while preserving site-scoped restrictions
- Update VisitorSpecification and repository queries to support scoped filtering
- Refine DashboardService and ReportService to respect access scope
- Fix JWT email claim generation
- Remove deprecated AuthenticatedUser DTO and simplify authentication models
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gatelog Ready Ready Preview Aug 5, 2026 2:21pm

@devcavin
devcavin merged commit b160a00 into main Aug 5, 2026
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.

Refactor visitor authorization to separate role from access scope

1 participant