Skip to content

Conversation

@VladKovtun99
Copy link
Contributor

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

…authorization and authentication. Implemented extension method for grain to get user claims from request context
@VladKovtun99 VladKovtun99 requested a review from KSemenenko July 30, 2025 08:44
@KSemenenko KSemenenko requested a review from Copilot July 30, 2025 11:56
Copy link

Copilot AI left a 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

@sonarqubecloud
Copy link

@KSemenenko KSemenenko merged commit 47353f5 into main Jul 30, 2025
2 of 3 checks passed
@KSemenenko KSemenenko deleted the kovtun/refactoring branch July 30, 2025 20:16
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.

3 participants