ISecurityEvents

Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll

Summary

Provides implementers a way to listen to security pipeline related events and do custom pre/post processing.

Methods

OnAuthenticated(requestService)

Summary

Raised when authentication is established successfully for the incoming request.

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnMultiFactorVerified(requestService)

Summary

Raised when multi-factor is verified successfully for the incoming request (not if MFA isn’t performed for example due to user hasn’t enabled it or it is skipped because request is marked with MFANotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnActivityAuthorizing(requestService)

Summary

Raised just before performing the activity authorization of the incoming request (not if it is skipped because request is marked with ActivityAuthorizationNotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnActivityAuthorized(requestService)

Summary

Raised when activity authorization was performed successfully for the incoming request (not if it is skipped because request is marked with ActivityAuthorizationNotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnAuthorized(requestService)

Summary

Raised when authorization is completed successfully for the incoming request.

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnAuthenticatedAsync(requestService)

Summary

Raised when authentication is established successfully for the incoming request.

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnAuthenticatedAsync(requestService,cancellationToken)

Summary

Raised when authentication is established successfully for the incoming request.

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.
cancellationToken System.Threading.CancellationToken The cancellation token.

OnMultiFactorVerifiedAsync(requestService)

Summary

Raised when multi-factor is verified successfully for the incoming request (not if MFA isn’t performed for example due to user hasn’t enabled it or it is skipped because request is marked with MFANotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnMultiFactorVerifiedAsync(requestService,cancellationToken)

Summary

Raised when multi-factor is verified successfully for the incoming request (not if MFA isn’t performed for example due to user hasn’t enabled it or it is skipped because request is marked with MFANotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.
cancellationToken System.Threading.CancellationToken The cancellation token.

OnActivityAuthorizingAsync(requestService)

Summary

Raised just before performing the activity authorization of the incoming request (not if it is skipped because request is marked with ActivityAuthorizationNotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnActivityAuthorizingAsync(requestService,cancellationToken)

Summary

Raised just before performing the activity authorization of the incoming request (not if it is skipped because request is marked with ActivityAuthorizationNotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.
cancellationToken System.Threading.CancellationToken The cancellation token.

OnActivityAuthorizedAsync(requestService)

Summary

Raised when activity authorization was performed successfully for the incoming request (not if it is skipped because request is marked with ActivityAuthorizationNotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnActivityAuthorizedAsync(requestService,cancellationToken)

Summary

Raised when activity authorization was performed successfully for the incoming request (not if it is skipped because request is marked with ActivityAuthorizationNotRequired).

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.
cancellationToken System.Threading.CancellationToken The cancellation token.

OnAuthorizedAsync(requestService)

Summary

Raised when authorization is completed successfully for the incoming request.

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.

OnAuthorizedAsync(requestService,cancellationToken)

Summary

Raised when authorization is completed successfully for the incoming request.

Parameters
Name Type Description
requestService ASPSecurityKit.IRequestService The request service.
cancellationToken System.Threading.CancellationToken The cancellation token.