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
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 |