Skip to content

feat: per-train authorization attribute#13

Merged
Theauxm merged 1 commit intomainfrom
feat/train-authorization
Mar 3, 2026
Merged

feat: per-train authorization attribute#13
Theauxm merged 1 commit intomainfrom
feat/train-authorization

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 3, 2026

Summary

  • Add [TraxAuthorize] attribute with Policy and Roles properties for per-train authorization
  • Supports AllowMultiple = true so multiple attributes can be stacked
  • Shorthand constructor: [TraxAuthorize("Admin")]

Test plan

  • Attribute compiles and is usable on train classes
  • Builds successfully with dotnet build
  • Formatted with dotnet csharpier check .

Adds TraxAuthorizeAttribute with Policy and Roles properties.
Trains decorated with this attribute have their authorization
requirements checked before execution via the API layer.
@Theauxm Theauxm merged commit 14b259b into main Mar 3, 2026
1 check passed
@Theauxm Theauxm deleted the feat/train-authorization branch March 3, 2026 22:24
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Mar 3, 2026

This PR is included in version 1.5.0

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