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