-
Notifications
You must be signed in to change notification settings - Fork 3
Refactored Orleans.Identity. Removed unnecessary parts, leaved grain … #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…authorization and authentication. Implemented extension method for grain to get user claims from request context
ManagedCode.Orleans.Identity.Client/Middlewares/SignalRAuthorizationFilter.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Client/Middlewares/SignalRAuthorizationFilter.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Client/Middlewares/SignalRAuthorizationFilter.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Client/Middlewares/OrleansContextMiddleware.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Core/Extensions/GrainExtensions.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Core/Extensions/GrainExtensions.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Server/GrainCallFilter/GrainAuthorizationIncomingFilter.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the Orleans.Identity library to simplify its architecture and focus on JWT-based authorization for ASP.NET Core applications. The main changes include removing session and token management components while retaining grain-level authorization capabilities.
- Removed session grain and token grain functionality to simplify the system
- Implemented JWT authentication and authorization pipeline for ASP.NET Core
- Added extension methods for grains to access current user claims from request context
Reviewed Changes
Copilot reviewed 65 out of 65 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updated documentation to reflect simplified JWT-based architecture with usage examples |
| ManagedCode.Orleans.Identity.Tests/ | Removed legacy token and session tests, added new JWT controller and SignalR tests |
| ManagedCode.Orleans.Identity.Server/GrainCallFilter/ | Updated authorization filter to use claims from request context instead of session grains |
| ManagedCode.Orleans.Identity.Core/Extensions/ | Added grain extension methods to get current user claims |
| ManagedCode.Orleans.Identity.Client/Middlewares/ | Replaced session-based middleware with JWT claim propagation middleware |
ManagedCode.Orleans.Identity.Tests/TestApp/Controllers/UserController.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Tests/TestApp/Controllers/UserController.cs
Outdated
Show resolved
Hide resolved
ManagedCode.Orleans.Identity.Server/GrainCallFilter/GrainAuthorizationIncomingFilter.cs
Outdated
Show resolved
Hide resolved
|



…authorization and authentication. Implemented extension method for grain to get user claims from request context