DefaultErrorMessageResourceProvider

Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll

Summary

Implements IErrorMessageResourceProvider with default content in English language.

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 faced some difficulty completing your request at this time, Please try again later. If the problem persists, feel free to contact the support.”

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.”

DoNotPossessPermission

Summary

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

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.”

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.”

AuthorizationHeaderRequired

Summary

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

InvalidKey

Summary

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

EmptyCookie

Summary

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

InvalidAuthCookie

Summary

Returns a message similar to “Invalid auth cookie value”

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.”

QsTokenNotForThisVerb

Summary

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

HmacExpired

Summary

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

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.”

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.”

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.”

EmptyHmac

Summary

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

InsecureConnection

Summary

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

IpNotAllowed

Summary

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

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.”

CredentialsIneffective

Summary

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

CredentialsExpired

Summary

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

SiteKeyNotAllowed

Summary

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

EmptyKey

Summary

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

KeyBasedAuthNotAllowed

Summary

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

SiteKeyBasedAuthNotAllowed

Summary

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

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 (|).”

SHTHmacExpired

Summary

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

SHTMissingParams

Summary

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

PasswordExpired

Summary

Returns a message similar to “Password has expired.”

MustEnableMFA

Summary

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

RestrictedToSessionAuth

Summary

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

NotAllowedDuringImpersonation

Summary

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