Unosquare
    Show / Hide Table of Contents

    Class AuthenticationModuleBaseExtensions

    Provides extension methods for classes derived from AuthenticationModuleBase.

    Inheritance
    Object
    AuthenticationModuleBaseExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: EmbedIO.Authentication
    Syntax
    public static class AuthenticationModuleBaseExtensions

    Methods

    HandleInvalidCredentials<TModule>(TModule, AuthenticationHandlerCallback)

    Sets an AuthenticationHandlerCallback that is called by an authentication module when a request contains invalid credentials.

    Declaration
    public static TModule HandleInvalidCredentials<TModule>(this TModule this, AuthenticationHandlerCallback callback)
        where TModule : AuthenticationModuleBase
    Parameters
    Type Name Description
    TModule this

    The module on which this method is called.

    AuthenticationHandlerCallback callback

    The method to call.

    Returns
    Type Description
    TModule

    this with its OnInvalidCredentials property set to callback.

    Type Parameters
    Name Description
    TModule

    The type of the module on which this method is called.

    HandleMissingCredentials<TModule>(TModule, AuthenticationHandlerCallback)

    Sets an AuthenticationHandlerCallback that is called by an authentication module when authentication could not take place.

    Declaration
    public static TModule HandleMissingCredentials<TModule>(this TModule this, AuthenticationHandlerCallback callback)
        where TModule : AuthenticationModuleBase
    Parameters
    Type Name Description
    TModule this

    The module on which this method is called.

    AuthenticationHandlerCallback callback

    The method to call.

    Returns
    Type Description
    TModule

    this with its OnMissingCredentials property set to callback.

    Type Parameters
    Name Description
    TModule

    The type of the module on which this method is called.

    Comments

    Back to top Copyright © 2017-2019 Unosquare