Table of Contents

Class AuthenticationProviderFactory

Namespace
PnP.Core.Auth.Services
Assembly
PnP.Core.Auth.dll

Public factory service to create IAuthenticationProvider object instances

public class AuthenticationProviderFactory : IAuthenticationProviderFactory
Inheritance
AuthenticationProviderFactory
Implements
Inherited Members

Constructors

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

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

Parameters

options IOptionsMonitor<PnPCoreAuthenticationOptions>

Options to configure the AuthenticationProviderFactory

logger ILogger<PnPContext>

Logger for log output

serviceProvider IServiceProvider

DI container service

Methods

Create(string)

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

public IAuthenticationProvider Create(string name)

Parameters

name string

The name of the IAuthenticationProvider configuration to use

Returns

IAuthenticationProvider

An object that implements IAuthenticationProvider based on the provided configuration name

CreateDefault()

Creates the default instance of IAuthenticationProvider based on the configuration

public IAuthenticationProvider CreateDefault()

Returns

IAuthenticationProvider

An object that implements IAuthenticationProvider based on the configuration