// namespace Microsoft.AspNetCore.Antiforgery { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.Antiforgery.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The provided identity of type '{0}' is marked {1} = {2} but does not have a value for {3}. By default, the antiforgery system requires that all authenticated identities have a unique {3}. If it is not possible to provide a unique {3} for this identity, consider extending {4} by overriding the {5} or a custom type that can provide some form of unique identifier for the current user. /// internal static string AntiforgeryTokenValidator_AuthenticatedUserWithoutUsername { get { return GetString("AntiforgeryTokenValidator_AuthenticatedUserWithoutUsername"); } } /// /// The provided identity of type '{0}' is marked {1} = {2} but does not have a value for {3}. By default, the antiforgery system requires that all authenticated identities have a unique {3}. If it is not possible to provide a unique {3} for this identity, consider extending {4} by overriding the {5} or a custom type that can provide some form of unique identifier for the current user. /// internal static string FormatAntiforgeryTokenValidator_AuthenticatedUserWithoutUsername(object p0, object p1, object p2, object p3, object p4, object p5) { return string.Format(CultureInfo.CurrentCulture, GetString("AntiforgeryTokenValidator_AuthenticatedUserWithoutUsername"), p0, p1, p2, p3, p4, p5); } /// /// The provided antiforgery token failed a custom data check. /// internal static string AntiforgeryToken_AdditionalDataCheckFailed { get { return GetString("AntiforgeryToken_AdditionalDataCheckFailed"); } } /// /// The provided antiforgery token failed a custom data check. /// internal static string FormatAntiforgeryToken_AdditionalDataCheckFailed() { return GetString("AntiforgeryToken_AdditionalDataCheckFailed"); } /// /// The provided antiforgery token was meant for a different claims-based user than the current user. /// internal static string AntiforgeryToken_ClaimUidMismatch { get { return GetString("AntiforgeryToken_ClaimUidMismatch"); } } /// /// The provided antiforgery token was meant for a different claims-based user than the current user. /// internal static string FormatAntiforgeryToken_ClaimUidMismatch() { return GetString("AntiforgeryToken_ClaimUidMismatch"); } /// /// The antiforgery token could not be decrypted. /// internal static string AntiforgeryToken_DeserializationFailed { get { return GetString("AntiforgeryToken_DeserializationFailed"); } } /// /// The antiforgery token could not be decrypted. /// internal static string FormatAntiforgeryToken_DeserializationFailed() { return GetString("AntiforgeryToken_DeserializationFailed"); } /// /// The antiforgery cookie token and request token do not match. /// internal static string AntiforgeryToken_SecurityTokenMismatch { get { return GetString("AntiforgeryToken_SecurityTokenMismatch"); } } /// /// The antiforgery cookie token and request token do not match. /// internal static string FormatAntiforgeryToken_SecurityTokenMismatch() { return GetString("AntiforgeryToken_SecurityTokenMismatch"); } /// /// Validation of the provided antiforgery token failed. The cookie token and the request token were swapped. /// internal static string AntiforgeryToken_TokensSwapped { get { return GetString("AntiforgeryToken_TokensSwapped"); } } /// /// Validation of the provided antiforgery token failed. The cookie token and the request token were swapped. /// internal static string FormatAntiforgeryToken_TokensSwapped() { return GetString("AntiforgeryToken_TokensSwapped"); } /// /// The provided antiforgery token was meant for user "{0}", but the current user is "{1}". /// internal static string AntiforgeryToken_UsernameMismatch { get { return GetString("AntiforgeryToken_UsernameMismatch"); } } /// /// The provided antiforgery token was meant for user "{0}", but the current user is "{1}". /// internal static string FormatAntiforgeryToken_UsernameMismatch(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("AntiforgeryToken_UsernameMismatch"), p0, p1); } /// /// The antiforgery system has the configuration value {0}.{1} = {2}, but the current request is not an SSL request. /// internal static string AntiforgeryWorker_RequireSSL { get { return GetString("AntiforgeryWorker_RequireSSL"); } } /// /// The antiforgery system has the configuration value {0}.{1} = {2}, but the current request is not an SSL request. /// internal static string FormatAntiforgeryWorker_RequireSSL(object p0, object p1, object p2) { return string.Format(CultureInfo.CurrentCulture, GetString("AntiforgeryWorker_RequireSSL"), p0, p1, p2); } /// /// The required antiforgery cookie "{0}" is not present. /// internal static string Antiforgery_CookieToken_IsInvalid { get { return GetString("Antiforgery_CookieToken_IsInvalid"); } } /// /// The required antiforgery cookie "{0}" is not present. /// internal static string Antiforgery_CookieToken_MustBeProvided { get { return GetString("Antiforgery_CookieToken_MustBeProvided"); } } /// /// The required antiforgery cookie "{0}" is not present. /// internal static string FormatAntiforgery_CookieToken_MustBeProvided(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_CookieToken_MustBeProvided"), p0); } /// /// The required antiforgery cookie token must be provided. /// internal static string Antiforgery_CookieToken_MustBeProvided_Generic { get { return GetString("Antiforgery_CookieToken_MustBeProvided_Generic"); } } /// /// The required antiforgery cookie token must be provided. /// internal static string FormatAntiforgery_CookieToken_MustBeProvided_Generic() { return GetString("Antiforgery_CookieToken_MustBeProvided_Generic"); } /// /// The required antiforgery form field "{0}" is not present. /// internal static string Antiforgery_FormToken_MustBeProvided { get { return GetString("Antiforgery_FormToken_MustBeProvided"); } } /// /// The required antiforgery form field "{0}" is not present. /// internal static string FormatAntiforgery_FormToken_MustBeProvided(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_FormToken_MustBeProvided"), p0); } /// /// The required antiforgery header value "{0}" is not present. /// internal static string Antiforgery_HeaderToken_MustBeProvided { get { return GetString("Antiforgery_HeaderToken_MustBeProvided"); } } /// /// The required antiforgery header value "{0}" is not present. /// internal static string FormatAntiforgery_HeaderToken_MustBeProvided(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_HeaderToken_MustBeProvided"), p0); } /// /// The required antiforgery request token was not provided in either form field "{0}" or header value "{1}". /// internal static string Antiforgery_RequestToken_MustBeProvided { get { return GetString("Antiforgery_RequestToken_MustBeProvided"); } } /// /// The required antiforgery request token was not provided in either form field "{0}" or header value "{1}". /// internal static string FormatAntiforgery_RequestToken_MustBeProvided(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_RequestToken_MustBeProvided"), p0, p1); } /// /// The required antiforgery request token must be provided. /// internal static string Antiforgery_RequestToken_MustBeProvided_Generic { get { return GetString("Antiforgery_RequestToken_MustBeProvided_Generic"); } } /// /// The required antiforgery request token must be provided. /// internal static string FormatAntiforgery_RequestToken_MustBeProvided_Generic() { return GetString("Antiforgery_RequestToken_MustBeProvided_Generic"); } /// /// Value cannot be null or empty. /// internal static string ArgumentCannotBeNullOrEmpty { get { return GetString("ArgumentCannotBeNullOrEmpty"); } } /// /// Value cannot be null or empty. /// internal static string FormatArgumentCannotBeNullOrEmpty() { return GetString("ArgumentCannotBeNullOrEmpty"); } private static string GetString(string name, params string[] formatterNames) { var value = _resourceManager.GetString(name); System.Diagnostics.Debug.Assert(value != null); if (formatterNames != null) { for (var i = 0; i < formatterNames.Length; i++) { value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}"); } } return value; } } }