NetSecuritySettings

Namespace: ASPSecurityKit.Net
Assembly: ASPSecurityKit.Net.dll

Summary

Implements the INetSecuritySettings.

Constructors

#ctor(config)

Summary

Initializes a new instance of the NetSecuritySettings class.

Parameters
Name Type Description
config ASPSecurityKit.IConfig The config.

Properties

VerificationUrl

Summary

Gets or sets the URL for the verification page that the user will be redirected to, if user is not yet verified and tries to perform an operation which requires a verified user.

Value

The URL for the verification page that the user will be redirected to, if user is not yet verified and tries to perform an operation which requires a verified user.

RedirectIfVerifiedUrl

Summary

Gets or sets the URL that the user will be redirected to if already verified and user tries to access VerificationUrl.

Value

The URL that the user will be redirected to if already verified and user tries to access VerificationUrl.

LoginUrl

Summary

Gets or sets the URL for the login page that the user will be redirected to if not authenticated.

Value

The URL for the login page that the user will be redirected to if not authenticated.

Remarks

You can add a placeholder ('?returnUrl={0}', for example) to the login URL which will be replaced with the current URL’s pathinfo and queryString (the returnUrl) by the MvcSecurityFailureResponseHandler while redirecting user to the login URL upon authentication failure (401 - Unauthenticated).

RegisterUrl

Summary

Gets or sets the URL for the user sign up page.

Value

The URL for the user sign up page.

UnauthorizedActionUrl

Summary

Gets or sets the URL for the unauthorized error page that the user will be redirected to if some authorization check fails.

Value

The URL for the unauthorized error page that the user will be redirected to if some authorization check fails.

RedirectIfLoggedInUrl

Summary

Gets or sets the URL that the user will be redirected to if already logged in and user tries to access RegisterUrl or LoginUrl.

Value

The URL that the user will be redirected to if already logged in and user tries to access RegisterUrl or LoginUrl.

MFAPromptUrl

Summary

Gets or sets the URL of the MFA prompt page that the user will be redirected to upon NotMultiFactored error.

Value

The URL of the MFA prompt page that the user will be redirected to upon NotMultiFactored error.

MFASettingUrl

Summary

Gets or sets the URL of the MFA settings page that the user will be redirected to upon MustEnableMFA error.

Value

The URL of the MFA settings page that the user will be redirected to upon MustEnableMFA error.

ChangePasswordUrl

Summary

Gets or sets the URL of the change password page that the user will be redirected to upon PasswordExpired error.

Value

The URL of the change password page that the user will be redirected to upon PasswordExpired error.