Class SamlAuthenticationHandler
- Namespace
- ComponentSpace.Saml2.Authentication
- Assembly
- ComponentSpace.Saml2.dll
The SAML authentication handler.
public class SamlAuthenticationHandler : AuthenticationHandler<SamlAuthenticationOptions>, IAuthenticationRequestHandler, IAuthenticationSignOutHandler, IAuthenticationHandler
- Inheritance
-
SamlAuthenticationHandler
- Implements
- Inherited Members
Constructors
SamlAuthenticationHandler(IOptionsMonitor<SamlAuthenticationOptions>, ILoggerFactory, UrlEncoder, ISamlServiceProvider, ISsoSessionStore, ISamlClaimFactory, IUrlUtility)
Initializes a new instance of the SamlAuthenticationHandler class.
public SamlAuthenticationHandler(IOptionsMonitor<SamlAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISamlServiceProvider samlServiceProvider, ISsoSessionStore ssoSessionStore, ISamlClaimFactory samlClaimFactory, IUrlUtility urlUtility)
Parameters
optionsIOptionsMonitor<SamlAuthenticationOptions>The SAML authentication options.
loggerILoggerFactoryThe logger factory.
encoderUrlEncoderThe URL encoder.
samlServiceProviderISamlServiceProviderThe SAML service provider.
ssoSessionStoreISsoSessionStoreThe SSO session store.
samlClaimFactoryISamlClaimFactoryThe SAML claims factory.
urlUtilityIUrlUtilityThe URL utility.
Methods
HandleAuthenticateAsync()
Handles authentication.
protected override Task<AuthenticateResult> HandleAuthenticateAsync()
Returns
- Task<AuthenticateResult>
A task that represents the operation.
HandleChallengeAsync(AuthenticationProperties)
Handles challenge.
protected override Task HandleChallengeAsync(AuthenticationProperties authenticationProperties)
Parameters
authenticationPropertiesAuthenticationPropertiesThe authentication properties.
Returns
- Task
A task that represents the operation.
HandleForbiddenAsync(AuthenticationProperties)
Handles forbidden.
protected override Task HandleForbiddenAsync(AuthenticationProperties authenticationProperties)
Parameters
authenticationPropertiesAuthenticationPropertiesThe authentication properties.
Returns
- Task
A task that represents the operation.
HandleRequestAsync()
Handles a request.
public virtual Task<bool> HandleRequestAsync()
Returns
SignOutAsync(AuthenticationProperties)
Signs out.
public virtual Task SignOutAsync(AuthenticationProperties authenticationProperties)
Parameters
authenticationPropertiesAuthenticationPropertiesThe authentication properties.
Returns
- Task
A task that represents the operation.