Share via


ServiceAuthenticationFilter Class

 

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

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Security
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.Security.ServiceAuthenticationFilter

Syntax

public class ServiceAuthenticationFilter : IAuthenticationFilter, 
    IFilter
public ref class ServiceAuthenticationFilter : IAuthenticationFilter, 
    IFilter
type ServiceAuthenticationFilter = 
    class
        interface IAuthenticationFilter
        interface IFilter
    end
Public Class ServiceAuthenticationFilter
    Implements IAuthenticationFilter, IFilter

Constructors

Name Description
System_CAPS_pubmethod ServiceAuthenticationFilter(IServiceTokenHandler)

Initializes a new instance of the ServiceAuthenticationFilter class.

System_CAPS_pubmethod ServiceAuthenticationFilter(String, IServiceTokenHandler)

Initializes a new instance of the ServiceAuthenticationFilter class.

Properties

Name Description
System_CAPS_pubproperty AllowMultiple

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

System_CAPS_pubproperty AuthenticationType

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

Methods

Name Description
System_CAPS_protmethod AddResponseChallenge(AuthenticationResponseChallenge)

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

System_CAPS_pubmethod AuthenticateAsync(HttpAuthenticationContext, CancellationToken)

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

System_CAPS_protmethod AuthenticateAsync(IAuthenticationManager)

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

System_CAPS_pubmethod ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)

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

System_CAPS_protmethod ChallengeAsync(IAuthenticationManager)

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

System_CAPS_protmethod CreatePrincipal(AuthenticateResult)

Creates an IPrincipal using the provided AuthenticateResult.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service.Security Namespace

Return to top