Class Authentication

Namespace
Cratis.Arc.Authentication
Assembly
Cratis.Arc.Core.dll

Represents the authentication service.

public class Authentication : IAuthentication
Inheritance
Authentication
Implements
Inherited Members
Extension Methods

Constructors

Authentication(IInstancesOf<IAuthenticationHandler>)

Represents the authentication service.

public Authentication(IInstancesOf<IAuthenticationHandler> handlers)

Parameters

handlers IInstancesOf<IAuthenticationHandler>

The authentication handlers.

Properties

HasHandlers

Gets a value indicating whether there are any authentication handlers configured.

public bool HasHandlers { get; }

Property Value

bool

Methods

HandleAuthentication(IHttpRequestContext)

Handles authentication for the given HTTP request context.

public Task<AuthenticationResult> HandleAuthentication(IHttpRequestContext context)

Parameters

context IHttpRequestContext

The HTTP request context.

Returns

Task<AuthenticationResult>

The result of the authentication attempt.