Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
namespace OpenHealthOS.Security.Authorization;

using OpenHealthOS.Contracts.Authorization;

/// <summary>
/// Provides access to the authorization context associated with the current request.
/// </summary>
public interface IAuthorizationContext
{
/// <summary>
/// Gets the permission being evaluated.
/// </summary>
Permission Permission { get; }

/// <summary>
/// Gets the resource type against which authorization is evaluated.
/// </summary>
string ResourceType { get; }

/// <summary>
/// Gets the optional resource identifier.
/// </summary>
string? ResourceId { get; }

/// <summary>
/// Gets the tenant identifier associated with the authorization request.
/// </summary>
string? TenantId { get; }

/// <summary>
/// Gets the organization identifier associated with the authorization request.
/// </summary>
string? OrganizationId { get; }
}
Loading