Skip to content

Feature guard decorator#101

Merged
amina69 merged 3 commits intoamina69:mainfrom
EzeanoroEbuka:feature-guard-decorator
Mar 31, 2026
Merged

Feature guard decorator#101
amina69 merged 3 commits intoamina69:mainfrom
EzeanoroEbuka:feature-guard-decorator

Conversation

@EzeanoroEbuka
Copy link
Copy Markdown
Contributor

PR: Guard Decorator full Implementation

Closes #42

This PR introduces a clean and maintainable authorization system using Guards combined with custom Decorators.
Guards handle the runtime decision of whether a request should proceed (e.g. authentication, role/permission checks), while custom decorators allow developers to declaratively annotate controllers and route handlers with metadata (such as required roles, permissions, or public access flags). This keeps authorization logic out of business code and makes security requirements explicit and easy to audit.

Overview

Closes


Please review the implementation and test the endpoints via Swagger UI (/api/docs).

Screenshot from 2026-03-28 10-34-41 Screenshot from 2026-03-28 10-34-05

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@EzeanoroEbuka Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@amina69 amina69 merged commit 32e19e2 into amina69:main Mar 31, 2026
3 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.

Guards + Decorators

2 participants