Interface IAuthorizationRequestContext

Namespace
Cratis.Arc.Authorization
Assembly
Cratis.Arc.Core.dll

Provides an operation-local Arc request identity without writing to a shared native HTTP context.

public interface IAuthorizationRequestContext
Extension Methods

Methods

BeginSelectedPrincipal(ClaimsPrincipal, IServiceProvider)

Begins a selected identity and execution provider for the current asynchronous flow.

IDisposable BeginSelectedPrincipal(ClaimsPrincipal principal, IServiceProvider services)

Parameters

principal ClaimsPrincipal

The selected principal.

services IServiceProvider

The clean execution provider.

Returns

IDisposable

A scope restoring the previous request identity.