ServiceAuthenticationFilter Class

Definition

Represents an authentication filter that authenticates via OWIN middleware and creates a ServiceUser as IPrincipal.

public class ServiceAuthenticationFilter : System.Web.Http.Filters.IAuthenticationFilter
type ServiceAuthenticationFilter = class
    interface IAuthenticationFilter
    interface IFilter
Public Class ServiceAuthenticationFilter
Implements IAuthenticationFilter
Inheritance
ServiceAuthenticationFilter
Implements
System.Web.Http.Filters.IAuthenticationFilter System.Web.Http.Filters.IFilter

Constructors

ServiceAuthenticationFilter(IServiceTokenHandler)

Initializes a new instance of the ServiceAuthenticationFilter class.

ServiceAuthenticationFilter(String, IServiceTokenHandler)

Initializes a new instance of the ServiceAuthenticationFilter class.

Properties

AllowMultiple

Gets or sets a value indicating whether more than one instance of this attribute can be specified for a single program element.

AuthenticationType

Gets or sets the authentication type of the OWIN middleware used.

Methods

AddResponseChallenge(AuthenticationResponseChallenge)

Adds the response challenge provided by the OWIN middleware identified by the given AuthenticationType. This is called as part of the creating an authentication challenge to a given request.

AuthenticateAsync(HttpAuthenticationContext, CancellationToken)

Asynchronously authenticates the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating authentication to that middleware.

AuthenticateAsync(IAuthenticationManager)

Asynchronously authenticates the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating authentication to that middleware.

ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)

Issues an authentication challenge to the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating the challenge generation to that middleware.

ChallengeAsync(IAuthenticationManager)

Issues an authentication challenge to the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating the challenge generation to that middleware.

CreatePrincipal(AuthenticateResult)

Creates an IPrincipal using the provided AuthenticateResult.

Applies to