Search Results for

    Show / Hide Table of Contents

    Class AuthenticationProviderFactory

    Public factory service to create IAuthenticationProvider object instances

    Inheritance
    System.Object
    AuthenticationProviderFactory
    Namespace: PnP.Core.Auth.Services
    Assembly: PnP.Core.Auth.dll
    Syntax
    public class AuthenticationProviderFactory : object, IAuthenticationProviderFactory

    Constructors

    AuthenticationProviderFactory(IOptionsMonitor<PnPCoreAuthenticationOptions>, ILogger<PnPContext>, IServiceProvider)

    AuthenticationProviderFactory constructor

    Declaration
    public AuthenticationProviderFactory(IOptionsMonitor<PnPCoreAuthenticationOptions> options, ILogger<PnPContext> logger, IServiceProvider serviceProvider)
    Parameters
    IOptionsMonitor<PnPCoreAuthenticationOptions> options

    Options to configure the AuthenticationProviderFactory

    ILogger<PnPContext> logger

    Logger for log output

    IServiceProvider serviceProvider

    DI container service

    Methods

    Create(String)

    Creates a new instance of IAuthenticationProvider based on a provided configuration name

    Declaration
    public IAuthenticationProvider Create(string name)
    Parameters
    System.String name

    The name of the IAuthenticationProvider configuration to use

    Returns
    IAuthenticationProvider

    An object that implements IAuthenticationProvider based on the provided configuration name

    Implements
    IAuthenticationProviderFactory.Create(String)

    CreateDefault()

    Creates the default instance of IAuthenticationProvider based on the configuration

    Declaration
    public IAuthenticationProvider CreateDefault()
    Returns
    IAuthenticationProvider

    An object that implements IAuthenticationProvider based on the configuration

    Implements
    IAuthenticationProviderFactory.CreateDefault()
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer