Class AuthenticationProviderFactory
Public factory service to create IAuthenticationProvider object instances
public class AuthenticationProviderFactory : IAuthenticationProviderFactory
- Inheritance
-
AuthenticationProviderFactory
- Implements
- Inherited Members
Constructors
AuthenticationProviderFactory(IOptionsMonitor<PnPCoreAuthenticationOptions>, ILogger<PnPContext>, IServiceProvider)
AuthenticationProviderFactory constructor
public AuthenticationProviderFactory(IOptionsMonitor<PnPCoreAuthenticationOptions> options, ILogger<PnPContext> logger, IServiceProvider serviceProvider)
Parameters
optionsIOptionsMonitor<PnPCoreAuthenticationOptions>Options to configure the AuthenticationProviderFactory
loggerILogger<PnPContext>Logger for log output
serviceProviderIServiceProviderDI container service
Methods
Create(string)
Creates a new instance of IAuthenticationProvider based on a provided configuration name
public IAuthenticationProvider Create(string name)
Parameters
namestringThe 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