SecurityPipeline
Members
Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll
Summary
Implements the ISecurityPipeline to protect your application with authentication, multi-factor, activity-based and data-aware authorization, IP firewall, verification and suspension checks. To learn more visit https://ASPSecurityKit.net/docs/the-security-pipeline/
Constructors
#ctor(authenticationProvider,multiFactorProvider,authorizationProvider,authEvents,failureHandler,securityContext,settings)
Summary
Initializes a new instance of the SecurityPipeline class.
Parameters
Name | Type | Description |
---|---|---|
authenticationProvider | ASPSecurityKit.AuthProviders.IAuthenticationProvider | The authentication provider. |
multiFactorProvider | ASPSecurityKit.AuthProviders.IMultiFactorProvider | The multi-factor provider. |
authorizationProvider | ASPSecurityKit.AuthProviders.IAuthorizationProvider | The authorization provider. |
authEvents | ASPSecurityKit.ISecurityEvents | The authEvents. |
failureHandler | ASPSecurityKit.ISecurityFailureResponseHandler | The failure handler. |
securityContext | ASPSecurityKit.ISecurityContext | The security context. |
settings | ASPSecurityKit.ISecuritySettings | The security settings. |
Methods
Execute(requestService)
Summary
Executes the security pipeline on the specified request.
Parameters
Name | Type | Description |
---|---|---|
requestService | ASPSecurityKit.IRequestService | The request service. |
Exceptions
Type | Description |
---|---|
System.ArgumentNullException | When requestService is null. |
ExecuteAsync(requestService)
Summary
Executes the security pipeline on the specified request.
Parameters
Name | Type | Description |
---|---|---|
requestService | ASPSecurityKit.IRequestService | The request service. |
Exceptions
Type | Description |
---|---|
System.ArgumentNullException | When requestService is null. |
ExecuteAsync(requestService,cancellationToken)
Summary
Executes the security pipeline on the specified request.
Parameters
Name | Type | Description |
---|---|---|
requestService | ASPSecurityKit.IRequestService | The request service. |
cancellationToken | System.Threading.CancellationToken | The cancellation token. |
Exceptions
Type | Description |
---|---|
System.ArgumentNullException | When requestService is null. |