Table of Contents

Class ApiValidationFilter

Namespace
InSite.Api.Settings
Assembly
InSite.UI.dll
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method)]
public class ApiValidationFilter : Attribute, _Attribute, IAuthenticationFilter, IFilter
Inheritance
ApiValidationFilter
Implements
Inherited Members

Constructors

ApiValidationFilter()

public ApiValidationFilter()

Properties

AllowMultiple

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

public bool AllowMultiple { get; }

Property Value

bool

true if more than one instance is allowed to be specified; otherwise, false. The default is false.

LogLocalApiRequests

public bool LogLocalApiRequests { get; }

Property Value

bool

Methods

AuthenticateAsync(HttpAuthenticationContext, CancellationToken)

Authenticates the request.

public Task AuthenticateAsync(HttpAuthenticationContext context, CancellationToken cancellation)

Parameters

context HttpAuthenticationContext

The authentication context.

cancellation CancellationToken

Returns

Task

A Task that will perform authentication.

ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)

public Task ChallengeAsync(HttpAuthenticationChallengeContext context, CancellationToken cancellation)

Parameters

context HttpAuthenticationChallengeContext
cancellation CancellationToken

Returns

Task