IErrorMessageResourceProvider

Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll

Summary

Defines messages for security violations content of which can be customized for locale and other needs.

Properties

Unauthorized

Summary

Returns a message similar to “You are not authorized to perform this operation. If you think you should be, please contact your administrator or customer representative.”

InternalServerError

Summary

Returns a message similar to “We’re experiencing some difficulties at this time,. Please try again later.”

AuthorizationHeaderRequired

Summary

Returns a message similar to “Authorization header is required.”

CredentialsExpired

Summary

Returns a message similar to “The credentials for {0} have expired.”

CredentialsIneffective

Summary

Returns a message similar to “The credentials for {0} are not yet in effect.”

DidNotProvideRequiredEntityId

Summary

Returns a message similar to “Though you possess one or more permission(s) to execute this operation but you didn’t provide required entityId(s) in the request.”

DoNotOwnEntityIds

Summary

Returns a message similar to “Couldn’t authorize this action as you do not possess one or more entityIds specified in the request. Check errors which contains those invalid entityIds.”

DoNotPossessPermission

Summary

Returns a message similar to “You do not possess a permission to execute this API.”

NotPermittedToPublicKey

Summary

Returns a message similar to “A public API key isn’t permitted to be used to call non-public operations.”

NotVerified

Summary

Returns a message similar to “User is not verified.”

EmptyCookie

Summary

Returns a message similar to “The auth cookie is empty.”

EmptyHmac

Summary

Returns a message similar to “The HMAC signature is missing.”

EmptyKey

Summary

Returns a message similar to “The key is missing.”

HmacExpired

Summary

Returns a message similar to “The HMAC signature has expired. It was valid till {0:yyyy-MM-dd h:m:s tt}.”

IncompleteHmac

Summary

Returns a message similar to “The HMAC signature is invalid as it has {0} components instead of {1} expected components. Please check that you’re computing the signature correctly by consulting the documentation.”

InsecureConnection

Summary

Returns a message similar to “You must use a secure connection to call this operation.”

InvalidAuthCookie

Summary

Returns a message similar to “Invalid auth cookie value”

InvalidHmac

Summary

Returns a message similar to “The HMAC signature is invalid. Please check that you’re computing the signature correctly by consulting the documentation.”

InvalidKey

Summary

Returns a message similar to “Invalid {0}: {1}.”

InvalidSignatureInCookie

Summary

Returns a message similar to “The signature in auth cookie is invalid. Please check that you’re computing the signature correctly by consulting the documentation. Or please check that the secret is the same as used for cookie creation.”

InvalidUrnInCookie

Summary

Returns a message similar to “Invalid authUrn {0} in auth cookie.”

IpNotAllowed

Summary

Returns a message similar to “The specified IP address {0} is not permitted for the credentials provided.”

KeyBasedAuthNotAllowed

Summary

Returns a message similar to “The key {0} is not configured to allow key-based authentication.”

MustEnableMFA

Summary

Returns a message similar to “Multi-factor authentication needs to be enabled.”

NotAllowedDuringImpersonation

Summary

Returns a message similar to “This action is not allowed during impersonation.”

OriginMissing

Summary

Returns a message similar to “The origin header is missing and is required for the credentials provided.”

OriginNotAllowed

Summary

Returns a message similar to “The specified origin domain {0} is not permitted for the credentials provided.”

PasswordExpired

Summary

Returns a message similar to “Password has expired.”

QsTokenNotForThisVerb

Summary

Returns a message similar to “The auth token in query string is not permitted for ‘{0}’ calls. Use authorization header instead.”

ReplayRequest

Summary

Returns a message similar to “The HMAC signature has already been used. Please compute a new signature even if request content is the same.”

RestrictedToSessionAuth

Summary

Returns a message similar to “This API is only available to requests over logged in user session.”

SHTHmacExpired

Summary

Returns a message similar to “The HMAC signature has expired. It was valid till {0:yyyy-MM-dd h:m:s tt}.”

SHTInvalidTimestamp

Summary

Returns a message similar to “The timestamp {0} is invalid. A valid one has two integer value components separated by a pipe sign (|).”

SHTMissingParams

Summary

Returns a message similar to “The url {0} doesn’t have following query param(s) required to compute a valid signature {1}.”

SiteKeyBasedAuthNotAllowed

Summary

Returns a message similar to “An API key with site-to-site access privilege cannot be used for key-based authentication.”

SiteKeyNotAllowed

Summary

Returns a message similar to “An API key with site-to-site access privilege cannot be used from a browser client.”

EntitiesSuspended

Summary

Returns a message similar to “Couldn’t authorize this action as one or more associated entities are not active. Check errors which contains identifiers for such entities along with a reason of being inactive.”

SuspendedEntityDetail

Summary

Returns a message similar to “{0}:{1} is inaccessible for this operation due to the following reason: ‘{2}’.”

UnsupportedScheme

Summary

Returns a message similar to “The authentication scheme {0} is not supported.”