Skip to content

refactor: Moved authorizer logic into use cases from services#94

Merged
m-t-a97 merged 4 commits into
mainfrom
refactor/move-authorizer-into-usecases
Jul 6, 2026
Merged

refactor: Moved authorizer logic into use cases from services#94
m-t-a97 merged 4 commits into
mainfrom
refactor/move-authorizer-into-usecases

Conversation

@m-t-a97

@m-t-a97 m-t-a97 commented Jul 6, 2026

Copy link
Copy Markdown
Member
  • This allows internal systems to be able to call services without being blocked by permissions due to the authorizer.
  • Authorizer is now in the usecase layer which is used by the handler and also by plugins in library mode which enforces authorization.
  • Improves code architecture, scalability and maintainability.
  • Removed organization create and list permissions allowing any user to create an organization and list their own organizations (previously this was completely blocked and unnecessarily required permissions to do this which doesn't make sense).
  • Removed create permission on API keys for users so now any user can create their own API keys without requiring a permission to do so.
  • Renamed GetAllOrganizations method to GetOrganizationsByOwner.

@m-t-a97 m-t-a97 self-assigned this Jul 6, 2026
@m-t-a97 m-t-a97 merged commit c59bc18 into main Jul 6, 2026
6 checks passed
@m-t-a97 m-t-a97 deleted the refactor/move-authorizer-into-usecases branch July 6, 2026 05:07
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.

1 participant