From e4f78176f93ed23adbf2a24d4e5e0062aad490e2 Mon Sep 17 00:00:00 2001 From: Chris R Date: Wed, 2 Sep 2015 14:16:03 -0700 Subject: [PATCH] Regenerate Resources.Designer.cs using the standard tooling. --- .../Properties/Resources.Designer.cs | 62 ++ .../Resources.Designer.cs | 85 -- .../Properties/Resources.Designer.cs | 46 ++ .../Resources.Designer.cs | 72 -- .../Properties/Resources.Designer.cs | 62 ++ .../Resources.Designer.cs | 81 -- .../Properties/Resources.Designer.cs | 62 ++ .../Resources.Designer.cs | 83 -- .../Properties/Resources.Designer.cs | 78 ++ .../Resources.Designer.cs | 90 -- .../Properties/Resources.Designer.cs | 62 ++ .../Resources.Designer.cs | 83 -- .../Properties/Resources.Designer.cs | 766 ++++++++++++++++++ .../Resources.Designer.cs | 440 ---------- .../Resources.resx | 56 +- .../Properties/Resources.Designer.cs | 62 ++ .../Resources.Designer.cs | 81 -- .../Properties/Resources.Designer.cs | 32 +- 18 files changed, 1244 insertions(+), 1059 deletions(-) create mode 100644 src/Microsoft.AspNet.Authentication.Cookies/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.Cookies/Resources.Designer.cs create mode 100644 src/Microsoft.AspNet.Authentication.Facebook/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.Facebook/Resources.Designer.cs create mode 100644 src/Microsoft.AspNet.Authentication.Google/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.Google/Resources.Designer.cs create mode 100644 src/Microsoft.AspNet.Authentication.JwtBearer/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.JwtBearer/Resources.Designer.cs create mode 100644 src/Microsoft.AspNet.Authentication.MicrosoftAccount/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.MicrosoftAccount/Resources.Designer.cs create mode 100644 src/Microsoft.AspNet.Authentication.OAuth/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.OAuth/Resources.Designer.cs create mode 100644 src/Microsoft.AspNet.Authentication.OpenIdConnect/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.Designer.cs create mode 100644 src/Microsoft.AspNet.Authentication.Twitter/Properties/Resources.Designer.cs delete mode 100644 src/Microsoft.AspNet.Authentication.Twitter/Resources.Designer.cs diff --git a/src/Microsoft.AspNet.Authentication.Cookies/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Cookies/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..ede713df8c --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.Cookies/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +// +namespace Microsoft.AspNet.Authentication.Cookies +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.Cookies.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// The cookie key and options are larger than ChunksSize, leaving no room for data. + /// + internal static string Exception_CookieLimitTooSmall + { + get { return GetString("Exception_CookieLimitTooSmall"); } + } + + /// + /// The cookie key and options are larger than ChunksSize, leaving no room for data. + /// + internal static string FormatException_CookieLimitTooSmall() + { + return GetString("Exception_CookieLimitTooSmall"); + } + + /// + /// The chunked cookie is incomplete. Only {0} of the expected {1} chunks were found, totaling {2} characters. A client size limit may have been exceeded. + /// + internal static string Exception_ImcompleteChunkedCookie + { + get { return GetString("Exception_ImcompleteChunkedCookie"); } + } + + /// + /// The chunked cookie is incomplete. Only {0} of the expected {1} chunks were found, totaling {2} characters. A client size limit may have been exceeded. + /// + internal static string FormatException_ImcompleteChunkedCookie(object p0, object p1, object p2) + { + return string.Format(CultureInfo.CurrentCulture, GetString("Exception_ImcompleteChunkedCookie"), p0, p1, p2); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.Cookies/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Cookies/Resources.Designer.cs deleted file mode 100644 index ef0e62fb41..0000000000 --- a/src/Microsoft.AspNet.Authentication.Cookies/Resources.Designer.cs +++ /dev/null @@ -1,85 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34003 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNet.Authentication.Cookies { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.Cookies.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The cookie key and options are larger than ChunksSize, leaving no room for data.. - /// - internal static string Exception_CookieLimitTooSmall - { - get - { - return ResourceManager.GetString("Exception_CookieLimitTooSmall", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The chunked cookie is incomplete. Only {0} of the expected {1} chunks were found, totaling {2} characters. A client size limit may have been exceeded.. - /// - internal static string Exception_ImcompleteChunkedCookie - { - get - { - return ResourceManager.GetString("Exception_ImcompleteChunkedCookie", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.AspNet.Authentication.Facebook/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Facebook/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..69c6675755 --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.Facebook/Properties/Resources.Designer.cs @@ -0,0 +1,46 @@ +// +namespace Microsoft.AspNet.Authentication.Facebook +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.Facebook.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// The '{0}' option must be provided. + /// + internal static string Exception_OptionMustBeProvided + { + get { return GetString("Exception_OptionMustBeProvided"); } + } + + /// + /// The '{0}' option must be provided. + /// + internal static string FormatException_OptionMustBeProvided(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.Facebook/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Facebook/Resources.Designer.cs deleted file mode 100644 index dd3f0e3fac..0000000000 --- a/src/Microsoft.AspNet.Authentication.Facebook/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.32559 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNet.Authentication.Facebook { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.Facebook.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The '{0}' option must be provided.. - /// - internal static string Exception_OptionMustBeProvided { - get { - return ResourceManager.GetString("Exception_OptionMustBeProvided", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.AspNet.Authentication.Google/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Google/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..5003d937b4 --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.Google/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +// +namespace Microsoft.AspNet.Authentication.Google +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.Google.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// The '{0}' option must be provided. + /// + internal static string Exception_OptionMustBeProvided + { + get { return GetString("Exception_OptionMustBeProvided"); } + } + + /// + /// The '{0}' option must be provided. + /// + internal static string FormatException_OptionMustBeProvided(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string Exception_ValidatorHandlerMismatch + { + get { return GetString("Exception_ValidatorHandlerMismatch"); } + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string FormatException_ValidatorHandlerMismatch() + { + return GetString("Exception_ValidatorHandlerMismatch"); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.Google/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Google/Resources.Designer.cs deleted file mode 100644 index efa7d64ed4..0000000000 --- a/src/Microsoft.AspNet.Authentication.Google/Resources.Designer.cs +++ /dev/null @@ -1,81 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34003 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNet.Authentication.Google { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.Google.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The '{0}' option must be provided.. - /// - internal static string Exception_OptionMustBeProvided { - get { - return ResourceManager.GetString("Exception_OptionMustBeProvided", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.. - /// - internal static string Exception_ValidatorHandlerMismatch { - get { - return ResourceManager.GetString("Exception_ValidatorHandlerMismatch", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.AspNet.Authentication.JwtBearer/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.JwtBearer/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..79bbbe4497 --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.JwtBearer/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +// +namespace Microsoft.AspNet.Authentication.JwtBearer +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.JwtBearer.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// The '{0}' option must be provided. + /// + internal static string Exception_OptionMustBeProvided + { + get { return GetString("Exception_OptionMustBeProvided"); } + } + + /// + /// The '{0}' option must be provided. + /// + internal static string FormatException_OptionMustBeProvided(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string Exception_ValidatorHandlerMismatch + { + get { return GetString("Exception_ValidatorHandlerMismatch"); } + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string FormatException_ValidatorHandlerMismatch() + { + return GetString("Exception_ValidatorHandlerMismatch"); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.JwtBearer/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.JwtBearer/Resources.Designer.cs deleted file mode 100644 index 44a3ea8be5..0000000000 --- a/src/Microsoft.AspNet.Authentication.JwtBearer/Resources.Designer.cs +++ /dev/null @@ -1,83 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.33440 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNet.Authentication.JwtBearer { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.Jwt.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The '{0}' option must be provided.. - /// - internal static string Exception_OptionMustBeProvided - { - get - { - return ResourceManager.GetString("Exception_OptionMustBeProvided", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.. - /// - internal static string Exception_ValidatorHandlerMismatch { - get { - return ResourceManager.GetString("Exception_ValidatorHandlerMismatch", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..6a20332bd6 --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Properties/Resources.Designer.cs @@ -0,0 +1,78 @@ +// +namespace Microsoft.AspNet.Authentication.MicrosoftAccount +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.MicrosoftAccount.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// The user does not have an id. + /// + internal static string Exception_MissingId + { + get { return GetString("Exception_MissingId"); } + } + + /// + /// The user does not have an id. + /// + internal static string FormatException_MissingId() + { + return GetString("Exception_MissingId"); + } + + /// + /// The '{0}' option must be provided. + /// + internal static string Exception_OptionMustBeProvided + { + get { return GetString("Exception_OptionMustBeProvided"); } + } + + /// + /// The '{0}' option must be provided. + /// + internal static string FormatException_OptionMustBeProvided(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string Exception_ValidatorHandlerMismatch + { + get { return GetString("Exception_ValidatorHandlerMismatch"); } + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string FormatException_ValidatorHandlerMismatch() + { + return GetString("Exception_ValidatorHandlerMismatch"); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Resources.Designer.cs deleted file mode 100644 index 080d4bc077..0000000000 --- a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Resources.Designer.cs +++ /dev/null @@ -1,90 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.33440 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNet.Authentication.MicrosoftAccount { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.MicrosoftAccount.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The user does not have an id.. - /// - internal static string Exception_MissingId { - get { - return ResourceManager.GetString("Exception_MissingId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The '{0}' option must be provided.. - /// - internal static string Exception_OptionMustBeProvided { - get { - return ResourceManager.GetString("Exception_OptionMustBeProvided", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.. - /// - internal static string Exception_ValidatorHandlerMismatch { - get { - return ResourceManager.GetString("Exception_ValidatorHandlerMismatch", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.AspNet.Authentication.OAuth/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.OAuth/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..d17513cbaa --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.OAuth/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +// +namespace Microsoft.AspNet.Authentication.OAuth +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.OAuth.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// The '{0}' option must be provided. + /// + internal static string Exception_OptionMustBeProvided + { + get { return GetString("Exception_OptionMustBeProvided"); } + } + + /// + /// The '{0}' option must be provided. + /// + internal static string FormatException_OptionMustBeProvided(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string Exception_ValidatorHandlerMismatch + { + get { return GetString("Exception_ValidatorHandlerMismatch"); } + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string FormatException_ValidatorHandlerMismatch() + { + return GetString("Exception_ValidatorHandlerMismatch"); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.OAuth/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.OAuth/Resources.Designer.cs deleted file mode 100644 index 6358382740..0000000000 --- a/src/Microsoft.AspNet.Authentication.OAuth/Resources.Designer.cs +++ /dev/null @@ -1,83 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.33440 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNet.Authentication.OAuth { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.OAuth.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The '{0}' option must be provided.. - /// - internal static string Exception_OptionMustBeProvided - { - get - { - return ResourceManager.GetString("Exception_OptionMustBeProvided", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.. - /// - internal static string Exception_ValidatorHandlerMismatch { - get { - return ResourceManager.GetString("Exception_ValidatorHandlerMismatch", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.OpenIdConnect/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..7a328601f0 --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.OpenIdConnect/Properties/Resources.Designer.cs @@ -0,0 +1,766 @@ +// +namespace Microsoft.AspNet.Authentication.OpenIdConnect +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.OpenIdConnect.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// OIDCH_0101: BackchannelTimeout cannot be less or equal to TimeSpan.Zero. + /// + internal static string OIDCH_0101_BackChallnelLessThanZero + { + get { return GetString("OIDCH_0101_BackChallnelLessThanZero"); } + } + + /// + /// OIDCH_0101: BackchannelTimeout cannot be less or equal to TimeSpan.Zero. + /// + internal static string FormatOIDCH_0101_BackChallnelLessThanZero() + { + return GetString("OIDCH_0101_BackChallnelLessThanZero"); + } + + /// + /// OIDCH_0102: An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string OIDCH_0102_Exception_ValidatorHandlerMismatch + { + get { return GetString("OIDCH_0102_Exception_ValidatorHandlerMismatch"); } + } + + /// + /// OIDCH_0102: An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string FormatOIDCH_0102_Exception_ValidatorHandlerMismatch() + { + return GetString("OIDCH_0102_Exception_ValidatorHandlerMismatch"); + } + + /// + /// OIDC_0051: The query string for Logout is not a well formed URI. The runtime cannot redirect. Redirect uri: '{0}'. + /// + internal static string OIDCH_0051_RedirectUriLogoutIsNotWellFormed + { + get { return GetString("OIDCH_0051_RedirectUriLogoutIsNotWellFormed"); } + } + + /// + /// OIDC_0051: The query string for Logout is not a well formed URI. The runtime cannot redirect. Redirect uri: '{0}'. + /// + internal static string FormatOIDCH_0051_RedirectUriLogoutIsNotWellFormed(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0051_RedirectUriLogoutIsNotWellFormed"), p0); + } + + /// + /// OIDCH_0026: Entering: '{0}' + /// + internal static string OIDCH_0026_ApplyResponseChallengeAsync + { + get { return GetString("OIDCH_0026_ApplyResponseChallengeAsync"); } + } + + /// + /// OIDCH_0026: Entering: '{0}' + /// + internal static string FormatOIDCH_0026_ApplyResponseChallengeAsync(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0026_ApplyResponseChallengeAsync"), p0); + } + + /// + /// OIDCH_0027: Converted 401 to 403. + /// + internal static string OIDCH_0027_401_ConvertedTo_403 + { + get { return GetString("OIDCH_0027_401_ConvertedTo_403"); } + } + + /// + /// OIDCH_0027: Converted 401 to 403. + /// + internal static string FormatOIDCH_0027_401_ConvertedTo_403() + { + return GetString("OIDCH_0027_401_ConvertedTo_403"); + } + + /// + /// OIDCH_0028: Response.StatusCode != 401, StatusCode: '{0}'. + /// + internal static string OIDCH_0028_StatusCodeNot401 + { + get { return GetString("OIDCH_0028_StatusCodeNot401"); } + } + + /// + /// OIDCH_0028: Response.StatusCode != 401, StatusCode: '{0}'. + /// + internal static string FormatOIDCH_0028_StatusCodeNot401(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0028_StatusCodeNot401"), p0); + } + + /// + /// OIDCH_0029: ChallengeContext == null AND !Options.AutomaticAuthentication + /// + internal static string OIDCH_0029_ChallengContextEqualsNull + { + get { return GetString("OIDCH_0029_ChallengContextEqualsNull"); } + } + + /// + /// OIDCH_0029: ChallengeContext == null AND !Options.AutomaticAuthentication + /// + internal static string FormatOIDCH_0029_ChallengContextEqualsNull() + { + return GetString("OIDCH_0029_ChallengContextEqualsNull"); + } + + /// + /// OIDCH_0030: Using properties.RedirectUri for 'local redirect' post authentication: '{0}'. + /// + internal static string OIDCH_0030_Using_Properties_RedirectUri + { + get { return GetString("OIDCH_0030_Using_Properties_RedirectUri"); } + } + + /// + /// OIDCH_0030: Using properties.RedirectUri for 'local redirect' post authentication: '{0}'. + /// + internal static string FormatOIDCH_0030_Using_Properties_RedirectUri(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0030_Using_Properties_RedirectUri"), p0); + } + + /// + /// OIDCH_0031: Using Options.RedirectUri for 'redirect_uri': '{0}'. + /// + internal static string OIDCH_0031_Using_Options_RedirectUri + { + get { return GetString("OIDCH_0031_Using_Options_RedirectUri"); } + } + + /// + /// OIDCH_0031: Using Options.RedirectUri for 'redirect_uri': '{0}'. + /// + internal static string FormatOIDCH_0031_Using_Options_RedirectUri(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0031_Using_Options_RedirectUri"), p0); + } + + /// + /// OIDCH_0032: using the CurrentUri for 'local redirect' post authentication: '{0}'. + /// + internal static string OIDCH_0032_UsingCurrentUriRedirectUri + { + get { return GetString("OIDCH_0032_UsingCurrentUriRedirectUri"); } + } + + /// + /// OIDCH_0032: using the CurrentUri for 'local redirect' post authentication: '{0}'. + /// + internal static string FormatOIDCH_0032_UsingCurrentUriRedirectUri(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0032_UsingCurrentUriRedirectUri"), p0); + } + + /// + /// OIDCH_0033: ProtocolValidator.RequireNonce == true. The generated nonce already exists: this usually indicates the nonce is not unique or has been used. The nonce is: '{0}'. + /// + internal static string OIDCH_0033_NonceAlreadyExists + { + get { return GetString("OIDCH_0033_NonceAlreadyExists"); } + } + + /// + /// OIDCH_0033: ProtocolValidator.RequireNonce == true. The generated nonce already exists: this usually indicates the nonce is not unique or has been used. The nonce is: '{0}'. + /// + internal static string FormatOIDCH_0033_NonceAlreadyExists(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0033_NonceAlreadyExists"), p0); + } + + /// + /// OIDCH_0034: RedirectToIdentityProviderContext.HandledResponse + /// + internal static string OIDCH_0034_RedirectToIdentityProviderContextHandledResponse + { + get { return GetString("OIDCH_0034_RedirectToIdentityProviderContextHandledResponse"); } + } + + /// + /// OIDCH_0034: RedirectToIdentityProviderContext.HandledResponse + /// + internal static string FormatOIDCH_0034_RedirectToIdentityProviderContextHandledResponse() + { + return GetString("OIDCH_0034_RedirectToIdentityProviderContextHandledResponse"); + } + + /// + /// OIDCH_0035: RedirectToIdentityProviderContext.Skipped + /// + internal static string OIDCH_0035_RedirectToIdentityProviderContextSkipped + { + get { return GetString("OIDCH_0035_RedirectToIdentityProviderContextSkipped"); } + } + + /// + /// OIDCH_0035: RedirectToIdentityProviderContext.Skipped + /// + internal static string FormatOIDCH_0035_RedirectToIdentityProviderContextSkipped() + { + return GetString("OIDCH_0035_RedirectToIdentityProviderContextSkipped"); + } + + /// + /// OIDCH_0036: Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute) returned 'false', redirectUri is: '{0}'. + /// + internal static string OIDCH_0036_UriIsNotWellFormed + { + get { return GetString("OIDCH_0036_UriIsNotWellFormed"); } + } + + /// + /// OIDCH_0036: Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute) returned 'false', redirectUri is: '{0}'. + /// + internal static string FormatOIDCH_0036_UriIsNotWellFormed(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0036_UriIsNotWellFormed"), p0); + } + + /// + /// OIDCH_0037: RedirectUri is: '{0}'. + /// + internal static string OIDCH_0037_RedirectUri + { + get { return GetString("OIDCH_0037_RedirectUri"); } + } + + /// + /// OIDCH_0037: RedirectUri is: '{0}'. + /// + internal static string FormatOIDCH_0037_RedirectUri(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0037_RedirectUri"), p0); + } + + /// + /// OIDCH_0038: Id Token is null. Redeeming code : {0} for tokens. + /// + internal static string OIDCH_0038_Redeeming_Auth_Code + { + get { return GetString("OIDCH_0038_Redeeming_Auth_Code"); } + } + + /// + /// OIDCH_0038: Id Token is null. Redeeming code : {0} for tokens. + /// + internal static string FormatOIDCH_0038_Redeeming_Auth_Code(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0038_Redeeming_Auth_Code"), p0); + } + + /// + /// OIDCH_0039: Subject claim received from userinfo endpoint does not match the one in the id token. + /// + internal static string OIDCH_0039_Subject_Claim_Mismatch + { + get { return GetString("OIDCH_0039_Subject_Claim_Mismatch"); } + } + + /// + /// OIDCH_0039: Subject claim received from userinfo endpoint does not match the one in the id token. + /// + internal static string FormatOIDCH_0039_Subject_Claim_Mismatch() + { + return GetString("OIDCH_0039_Subject_Claim_Mismatch"); + } + + /// + /// OIDCH_0040: Sending request to user info endpoint for retrieving claims. + /// + internal static string OIDCH_0040_Sending_Request_UIEndpoint + { + get { return GetString("OIDCH_0040_Sending_Request_UIEndpoint"); } + } + + /// + /// OIDCH_0040: Sending request to user info endpoint for retrieving claims. + /// + internal static string FormatOIDCH_0040_Sending_Request_UIEndpoint() + { + return GetString("OIDCH_0040_Sending_Request_UIEndpoint"); + } + + /// + /// OIDCH_0000: Entering: '{0}'. + /// + internal static string OIDCH_0000_AuthenticateCoreAsync + { + get { return GetString("OIDCH_0000_AuthenticateCoreAsync"); } + } + + /// + /// OIDCH_0000: Entering: '{0}'. + /// + internal static string FormatOIDCH_0000_AuthenticateCoreAsync(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0000_AuthenticateCoreAsync"), p0); + } + + /// + /// OIDCH_0001: MessageReceived: '{0}'. + /// + internal static string OIDCH_0001_MessageReceived + { + get { return GetString("OIDCH_0001_MessageReceived"); } + } + + /// + /// OIDCH_0001: MessageReceived: '{0}'. + /// + internal static string FormatOIDCH_0001_MessageReceived(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0001_MessageReceived"), p0); + } + + /// + /// OIDCH_0002: MessageReceivedContext.HandledResponse + /// + internal static string OIDCH_0002_MessageReceivedContextHandledResponse + { + get { return GetString("OIDCH_0002_MessageReceivedContextHandledResponse"); } + } + + /// + /// OIDCH_0002: MessageReceivedContext.HandledResponse + /// + internal static string FormatOIDCH_0002_MessageReceivedContextHandledResponse() + { + return GetString("OIDCH_0002_MessageReceivedContextHandledResponse"); + } + + /// + /// OIDCH_0003: MessageReceivedContext.Skipped + /// + internal static string OIDCH_0003_MessageReceivedContextSkipped + { + get { return GetString("OIDCH_0003_MessageReceivedContextSkipped"); } + } + + /// + /// OIDCH_0003: MessageReceivedContext.Skipped + /// + internal static string FormatOIDCH_0003_MessageReceivedContextSkipped() + { + return GetString("OIDCH_0003_MessageReceivedContextSkipped"); + } + + /// + /// OIDCH_0004: OpenIdConnectAuthenticationHandler: message.State is null or empty. + /// + internal static string OIDCH_0004_MessageStateIsNullOrEmpty + { + get { return GetString("OIDCH_0004_MessageStateIsNullOrEmpty"); } + } + + /// + /// OIDCH_0004: OpenIdConnectAuthenticationHandler: message.State is null or empty. + /// + internal static string FormatOIDCH_0004_MessageStateIsNullOrEmpty() + { + return GetString("OIDCH_0004_MessageStateIsNullOrEmpty"); + } + + /// + /// OIDCH_0005: Unable to unprotect the message.State. + /// + internal static string OIDCH_0005_MessageStateIsInvalid + { + get { return GetString("OIDCH_0005_MessageStateIsInvalid"); } + } + + /// + /// OIDCH_0005: Unable to unprotect the message.State. + /// + internal static string FormatOIDCH_0005_MessageStateIsInvalid() + { + return GetString("OIDCH_0005_MessageStateIsInvalid"); + } + + /// + /// OIDCH_0006: Message contains error: '{0}', error_description: '{1}', error_uri: '{2}'. + /// + internal static string OIDCH_0006_MessageContainsError + { + get { return GetString("OIDCH_0006_MessageContainsError"); } + } + + /// + /// OIDCH_0006: Message contains error: '{0}', error_description: '{1}', error_uri: '{2}'. + /// + internal static string FormatOIDCH_0006_MessageContainsError(object p0, object p1, object p2) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0006_MessageContainsError"), p0, p1, p2); + } + + /// + /// OIDCH_0007: Updating configuration + /// + internal static string OIDCH_0007_UpdatingConfiguration + { + get { return GetString("OIDCH_0007_UpdatingConfiguration"); } + } + + /// + /// OIDCH_0007: Updating configuration + /// + internal static string FormatOIDCH_0007_UpdatingConfiguration() + { + return GetString("OIDCH_0007_UpdatingConfiguration"); + } + + /// + /// OIDCH_0008: SecurityTokenReceivedContext.HandledResponse + /// + internal static string OIDCH_0008_SecurityTokenReceivedContextHandledResponse + { + get { return GetString("OIDCH_0008_SecurityTokenReceivedContextHandledResponse"); } + } + + /// + /// OIDCH_0008: SecurityTokenReceivedContext.HandledResponse + /// + internal static string FormatOIDCH_0008_SecurityTokenReceivedContextHandledResponse() + { + return GetString("OIDCH_0008_SecurityTokenReceivedContextHandledResponse"); + } + + /// + /// OIDCH_0009: SecurityTokenReceivedContext.Skipped + /// + internal static string OIDCH_0009_SecurityTokenReceivedContextSkipped + { + get { return GetString("OIDCH_0009_SecurityTokenReceivedContextSkipped"); } + } + + /// + /// OIDCH_0009: SecurityTokenReceivedContext.Skipped + /// + internal static string FormatOIDCH_0009_SecurityTokenReceivedContextSkipped() + { + return GetString("OIDCH_0009_SecurityTokenReceivedContextSkipped"); + } + + /// + /// OIDCH_0010: Validated Security Token must be a JwtSecurityToken was: '{0}'. + /// + internal static string OIDCH_0010_ValidatedSecurityTokenNotJwt + { + get { return GetString("OIDCH_0010_ValidatedSecurityTokenNotJwt"); } + } + + /// + /// OIDCH_0010: Validated Security Token must be a JwtSecurityToken was: '{0}'. + /// + internal static string FormatOIDCH_0010_ValidatedSecurityTokenNotJwt(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0010_ValidatedSecurityTokenNotJwt"), p0); + } + + /// + /// OIDCH_0011: Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'." + /// + internal static string OIDCH_0011_UnableToValidateToken + { + get { return GetString("OIDCH_0011_UnableToValidateToken"); } + } + + /// + /// OIDCH_0011: Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'." + /// + internal static string FormatOIDCH_0011_UnableToValidateToken(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0011_UnableToValidateToken"), p0); + } + + /// + /// OIDCH_0012: SecurityTokenValidatedContext.HandledResponse + /// + internal static string OIDCH_0012_SecurityTokenValidatedContextHandledResponse + { + get { return GetString("OIDCH_0012_SecurityTokenValidatedContextHandledResponse"); } + } + + /// + /// OIDCH_0012: SecurityTokenValidatedContext.HandledResponse + /// + internal static string FormatOIDCH_0012_SecurityTokenValidatedContextHandledResponse() + { + return GetString("OIDCH_0012_SecurityTokenValidatedContextHandledResponse"); + } + + /// + /// OIDCH_0013: SecurityTokenValidatedContext.Skipped + /// + internal static string OIDCH_0013_SecurityTokenValidatedContextSkipped + { + get { return GetString("OIDCH_0013_SecurityTokenValidatedContextSkipped"); } + } + + /// + /// OIDCH_0013: SecurityTokenValidatedContext.Skipped + /// + internal static string FormatOIDCH_0013_SecurityTokenValidatedContextSkipped() + { + return GetString("OIDCH_0013_SecurityTokenValidatedContextSkipped"); + } + + /// + /// OIDCH_0014: AuthorizationCode received: '{0}'. + /// + internal static string OIDCH_0014_AuthorizationCodeReceived + { + get { return GetString("OIDCH_0014_AuthorizationCodeReceived"); } + } + + /// + /// OIDCH_0014: AuthorizationCode received: '{0}'. + /// + internal static string FormatOIDCH_0014_AuthorizationCodeReceived(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0014_AuthorizationCodeReceived"), p0); + } + + /// + /// OIDCH_0015: AuthorizationCodeReceivedContext.HandledResponse + /// + internal static string OIDCH_0015_AuthorizationCodeReceivedContextHandledResponse + { + get { return GetString("OIDCH_0015_AuthorizationCodeReceivedContextHandledResponse"); } + } + + /// + /// OIDCH_0015: AuthorizationCodeReceivedContext.HandledResponse + /// + internal static string FormatOIDCH_0015_AuthorizationCodeReceivedContextHandledResponse() + { + return GetString("OIDCH_0015_AuthorizationCodeReceivedContextHandledResponse"); + } + + /// + /// OIDCH_0016: AuthorizationCodeReceivedContext.Skipped + /// + internal static string OIDCH_0016_AuthorizationCodeReceivedContextSkipped + { + get { return GetString("OIDCH_0016_AuthorizationCodeReceivedContextSkipped"); } + } + + /// + /// OIDCH_0016: AuthorizationCodeReceivedContext.Skipped + /// + internal static string FormatOIDCH_0016_AuthorizationCodeReceivedContextSkipped() + { + return GetString("OIDCH_0016_AuthorizationCodeReceivedContextSkipped"); + } + + /// + /// OIDCH_0017: Exception occurred while processing message. + /// + internal static string OIDCH_0017_ExceptionOccurredWhileProcessingMessage + { + get { return GetString("OIDCH_0017_ExceptionOccurredWhileProcessingMessage"); } + } + + /// + /// OIDCH_0017: Exception occurred while processing message. + /// + internal static string FormatOIDCH_0017_ExceptionOccurredWhileProcessingMessage() + { + return GetString("OIDCH_0017_ExceptionOccurredWhileProcessingMessage"); + } + + /// + /// OIDCH_0018: AuthenticationFailedContext.HandledResponse + /// + internal static string OIDCH_0018_AuthenticationFailedContextHandledResponse + { + get { return GetString("OIDCH_0018_AuthenticationFailedContextHandledResponse"); } + } + + /// + /// OIDCH_0018: AuthenticationFailedContext.HandledResponse + /// + internal static string FormatOIDCH_0018_AuthenticationFailedContextHandledResponse() + { + return GetString("OIDCH_0018_AuthenticationFailedContextHandledResponse"); + } + + /// + /// OIDCH_0019: AuthenticationFailedContext.Skipped + /// + internal static string OIDCH_0019_AuthenticationFailedContextSkipped + { + get { return GetString("OIDCH_0019_AuthenticationFailedContextSkipped"); } + } + + /// + /// OIDCH_0019: AuthenticationFailedContext.Skipped + /// + internal static string FormatOIDCH_0019_AuthenticationFailedContextSkipped() + { + return GetString("OIDCH_0019_AuthenticationFailedContextSkipped"); + } + + /// + /// OIDCH_0020: 'id_token' received: '{0}' + /// + internal static string OIDCH_0020_IdTokenReceived + { + get { return GetString("OIDCH_0020_IdTokenReceived"); } + } + + /// + /// OIDCH_0020: 'id_token' received: '{0}' + /// + internal static string FormatOIDCH_0020_IdTokenReceived(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0020_IdTokenReceived"), p0); + } + + /// + /// OIDCH_0021: exception of type 'SecurityTokenSignatureKeyNotFoundException' thrown, Options.ConfigurationManager.RequestRefresh() called. + /// + internal static string OIDCH_0021_AutomaticConfigurationRefresh + { + get { return GetString("OIDCH_0021_AutomaticConfigurationRefresh"); } + } + + /// + /// OIDCH_0021: exception of type 'SecurityTokenSignatureKeyNotFoundException' thrown, Options.ConfigurationManager.RequestRefresh() called. + /// + internal static string FormatOIDCH_0021_AutomaticConfigurationRefresh() + { + return GetString("OIDCH_0021_AutomaticConfigurationRefresh"); + } + + /// + /// OIDCH_0041: Subject claim not found in {0}. + /// + internal static string OIDCH_0041_Subject_Claim_Not_Found + { + get { return GetString("OIDCH_0041_Subject_Claim_Not_Found"); } + } + + /// + /// OIDCH_0041: Subject claim not found in {0}. + /// + internal static string FormatOIDCH_0041_Subject_Claim_Not_Found(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0041_Subject_Claim_Not_Found"), p0); + } + + /// + /// OIDCH_0042: Authorization Code redeemed: '{0}' + /// + internal static string OIDCH_0042_AuthorizationCodeRedeemed + { + get { return GetString("OIDCH_0042_AuthorizationCodeRedeemed"); } + } + + /// + /// OIDCH_0042: Authorization Code redeemed: '{0}' + /// + internal static string FormatOIDCH_0042_AuthorizationCodeRedeemed(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("OIDCH_0042_AuthorizationCodeRedeemed"), p0); + } + + /// + /// OIDCH_0043: AuthorizationCodeRedeemedContext.HandledResponse + /// + internal static string OIDCH_0043_AuthorizationCodeRedeemedContextHandledResponse + { + get { return GetString("OIDCH_0043_AuthorizationCodeRedeemedContextHandledResponse"); } + } + + /// + /// OIDCH_0043: AuthorizationCodeRedeemedContext.HandledResponse + /// + internal static string FormatOIDCH_0043_AuthorizationCodeRedeemedContextHandledResponse() + { + return GetString("OIDCH_0043_AuthorizationCodeRedeemedContextHandledResponse"); + } + + /// + /// OIDCH_0044: AuthorizationCodeRedeemedContext.Skipped + /// + internal static string OIDCH_0044_AuthorizationCodeRedeemedContextSkipped + { + get { return GetString("OIDCH_0044_AuthorizationCodeRedeemedContextSkipped"); } + } + + /// + /// OIDCH_0044: AuthorizationCodeRedeemedContext.Skipped + /// + internal static string FormatOIDCH_0044_AuthorizationCodeRedeemedContextSkipped() + { + return GetString("OIDCH_0044_AuthorizationCodeRedeemedContextSkipped"); + } + + /// + /// OIDCH_0045: Cannot process the message. Both id_token and code are missing. + /// + internal static string OIDCH_0045_Id_Token_Code_Missing + { + get { return GetString("OIDCH_0045_Id_Token_Code_Missing"); } + } + + /// + /// OIDCH_0045: Cannot process the message. Both id_token and code are missing. + /// + internal static string FormatOIDCH_0045_Id_Token_Code_Missing() + { + return GetString("OIDCH_0045_Id_Token_Code_Missing"); + } + + /// + /// OIDCH_0046: UserInfo endpoint is not set. Request to retrieve claims from userinfo endpoint cannot be completed. + /// + internal static string OIDCH_0046_UserInfo_Endpoint_Not_Set + { + get { return GetString("OIDCH_0046_UserInfo_Endpoint_Not_Set"); } + } + + /// + /// OIDCH_0046: UserInfo endpoint is not set. Request to retrieve claims from userinfo endpoint cannot be completed. + /// + internal static string FormatOIDCH_0046_UserInfo_Endpoint_Not_Set() + { + return GetString("OIDCH_0046_UserInfo_Endpoint_Not_Set"); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.Designer.cs deleted file mode 100644 index cdef48e368..0000000000 --- a/src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.Designer.cs +++ /dev/null @@ -1,440 +0,0 @@ -// -namespace Microsoft.AspNet.Authentication.OpenIdConnect -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if (object.ReferenceEquals(resourceMan, null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.OpenIdConnect.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - - /// - /// OIDCH_0101: BackchannelTimeout cannot be less or equal to TimeSpan.Zero. - /// - internal static string OIDCH_0101_BackChallnelLessThanZero - { - get { return ResourceManager.GetString("OIDCH_0101_BackChallnelLessThanZero"); } - } - - /// - /// OIDCH0102: An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string OIDCH_0102_ExceptionValidatorHandlerMismatch - { - get { return ResourceManager.GetString("OIDCH_0102_Exception_ValidatorHandlerMismatch"); } - } - - /// - /// OIDCH_0051: The query string for Logout is not a well formed URI. The runtime cannot redirect. Redirect uri: '{0}'. - /// - internal static string OIDCH_0051_RedirectUriLogoutIsNotWellFormed - { - get { return ResourceManager.GetString("OIDCH_0051_RedirectUriLogoutIsNotWellFormed"); } - } - - /// - /// OIDCH_0026: Entering: '{0}' - /// - internal static string OIDCH_0026_ApplyResponseChallengeAsync - { - get { return ResourceManager.GetString("OIDCH_0026_ApplyResponseChallengeAsync"); } - } - - /// - /// OIDCH_0027: Converted 401 to 403. - /// - internal static string OIDCH_0027_401_ConvertedTo_403 - { - get { return ResourceManager.GetString("OIDCH_0027_401_ConvertedTo_403"); } - } - - /// - /// OIDCH_0028: Response.StatusCode != 401, StatusCode: '{0}'." - /// - internal static string OIDCH_0028_StatusCodeNot401 - { - get { return ResourceManager.GetString("OIDCH_0028_StatusCodeNot401"); } - } - - /// - /// OIDCH_0029: ChallengeContext == null AND !Options.AutomaticAuthentication - /// - internal static string OIDCH_0029_ChallengeContextEqualsNull - { - get { return ResourceManager.GetString("OIDCH_0029_ChallengeContextEqualsNull"); } - } - - /// - /// OIDCH_0030: Using properties.RedirectUri for 'local redirect' post authentication: '{0}'. - /// - internal static string OIDCH_0030_Using_Properties_RedirectUri - { - get { return ResourceManager.GetString("OIDCH_0030_Using_Properties_RedirectUri"); } - } - - /// - /// OIDCH_0031: Using Options.RedirectUri for 'redirect_uri': '{0}'. - /// - internal static string OIDCH_0031_Using_Options_RedirectUri - { - get { return ResourceManager.GetString("OIDCH_0031_Using_Options_RedirectUri"); } - } - - /// - /// OIDCH_0032: Using the CurrentUri for 'local redirect' post authentication: '{0}'. - /// - internal static string OIDCH_0032_UsingCurrentUriRedirectUri - { - get { return ResourceManager.GetString("OIDCH_0032_UsingCurrentUriRedirectUri"); } - } - - /// - /// OIDCH_0033: ProtocolValidator.RequireNonce == true. The generated nonce already exists: this usually indicates the nonce is not unique or has been used. The nonce is: '{0}'. - /// - internal static string OIDCH_0033_NonceAlreadyExists - { - get { return ResourceManager.GetString("OIDCH_0033_NonceAlreadyExists"); } - } - - /// - /// OIDCH_0034: RedirectToIdentityProviderNotification.HandledResponse - /// - internal static string OIDCH_0034_RedirectToIdentityProviderNotificationHandledResponse - { - get { return ResourceManager.GetString("OIDCH_0034_RedirectToIdentityProviderNotificationHandledResponse"); } - } - - /// - /// OIDCH_0035: RedirectToIdentityProviderNotification.Skipped - /// - internal static string OIDCH_0035_RedirectToIdentityProviderNotificationSkipped - { - get { return ResourceManager.GetString("OIDCH_0035_RedirectToIdentityProviderNotificationSkipped"); } - } - - /// - /// OIDCH_0036: Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute) returned 'false', redirectUri is: {0}'.) - /// - internal static string OIDCH_0036_UriIsNotWellFormed - { - get { return ResourceManager.GetString("OIDCH_0036_UriIsNotWellFormed"); } - } - - /// - /// OIDCH_0036: RedirectUri is: '{0}'. - /// - internal static string OIDCH_0037_RedirectUri - { - get { return ResourceManager.GetString("OIDCH_0037_RedirectUri"); } - } - - /// - /// OIDCH_0038: Id Token is null. Redeeming code : {0} for tokens. - /// - internal static string OIDCH_0038_Redeeming_Auth_Code - { - get { return ResourceManager.GetString("OIDCH_0038_Redeeming_Auth_Code"); } - } - - /// - /// OIDCH_0039: Subject claim received from userinfo endpoint does not match the one in the id token. - /// - internal static string OIDCH_0039_Subject_Claim_Mismatch - { - get { return ResourceManager.GetString("OIDCH_0039_Subject_Claim_Mismatch"); } - } - - /// - /// OIDCH_0040: Sending request to user info endpoint for retrieving claims. - /// - internal static string OIDCH_0040_Sending_Request_UIEndpoint - { - get { return ResourceManager.GetString("OIDCH_0040_Sending_Request_UIEndpoint"); } - } - - /// - /// OIDCH_0041: Subject claim not found in {0}. - /// - internal static string OIDCH_0041_Subject_Claim_Not_Found - { - get { return ResourceManager.GetString("OIDCH_0041_Subject_Claim_Not_Found"); } - } - - /// - /// OIDCH_0042: AuthorizationCode redeemed: '{0}' - /// - internal static string OIDCH_0042_AuthorizationCodeRedeemed - { - get { return ResourceManager.GetString("OIDCH_0042_AuthorizationCodeRedeemed"); } - } - - /// - /// OIDCH_0043: AuthorizationCodeRedeemedNotification.HandledResponse - /// - internal static string OIDCH_0043_AuthorizationCodeRedeemedNotificationHandledResponse - { - get { return ResourceManager.GetString("OIDCH_0043_AuthorizationCodeRedeemedNotificationHandledResponse"); } - } - - /// - /// OIDCH_0044: AuthorizationCodeRedeemedNotification.Skipped - /// - internal static string OIDCH_0044_AuthorizationCodeRedeemedNotificationSkipped - { - get { return ResourceManager.GetString("OIDCH_0044_AuthorizationCodeRedeemedNotificationSkipped"); } - } - - /// - /// OIDCH_0045: Cannot process the message.Both id_token and code are missing. - /// - internal static string OIDCH_0045_Id_Token_Code_Missing - { - get { return ResourceManager.GetString("OIDCH_0045_Id_Token_Code_Missing"); } - } - - /// - /// OIDCH_0046: UserInfo endpoint is not set. Request to retrieve claims from userinfo endpoint cannot be completed. - /// - internal static string OIDCH_0046_UserInfo_Endpoint_Not_Set - { - get { return ResourceManager.GetString("OIDCH_0046_UserInfo_Endpoint_Not_Set"); } - } - - /// - /// OIDCH_0000: Entering: '{0}'. - /// - internal static string OIDCH_0000_AuthenticateCoreAsync - { - get { return ResourceManager.GetString("OIDCH_0000_AuthenticateCoreAsync"); } - } - - /// - /// OIDCH_0001: MessageReceived: '{0}'. - /// - internal static string OIDCH_0001_MessageReceived - { - get { return ResourceManager.GetString("OIDCH_0001_MessageReceived"); } - } - - /// - /// OIDCH_0001: MessageReceived: '{0}'. - /// - internal static string FormatOIDCH_0001_MessageReceived(object p0) - { - return string.Format(CultureInfo.CurrentCulture, ResourceManager.GetString("OIDCH_0001_MessageReceived"), p0); - } - - /// - /// OIDCH_0002: MessageReceivedNotification.HandledResponse - /// - internal static string OIDCH_0002_MessageReceivedNotificationHandledResponse - { - get { return ResourceManager.GetString("OIDCH_0002_MessageReceivedNotificationHandledResponse"); } - } - - /// - /// OIDCH_0003: MessageReceivedNotification.Skipped - /// - internal static string OIDCH_0003_MessageReceivedNotificationSkipped - { - get { return ResourceManager.GetString("OIDCH_0003_MessageReceivedNotificationSkipped"); } - } - - /// - /// OIDCH_0004: OpenIdConnectAuthenticationHandler: message.State is null or empty. - /// - internal static string OIDCH_0004_MessageStateIsNullOrEmpty - { - get { return ResourceManager.GetString("OIDCH_0004_MessageStateIsNullOrEmpty"); } - } - - /// - /// OIDCH_0005: Unable to unprotect the message.State - /// - internal static string OIDCH_0005_MessageStateIsInvalid - { - get { return ResourceManager.GetString("OIDCH_0005_MessageStateIsInvalid"); } - } - - /// - /// OIDCH_0006: Message contains error: '{0}', error_description: '{1}', error_uri: '{2}'. - /// - internal static string OIDCH_0006_MessageContainsError - { - get { return ResourceManager.GetString("OIDCH_0006_MessageContainsError"); } - } - - /// - /// OIDCH_0007: Updating configuration - /// - internal static string OIDCH_0007_UpdatingConfiguration - { - get { return ResourceManager.GetString("OIDCH_0007_UpdatingConfiguration"); } - } - - /// - /// OIDCH_0008: SecurityTokenReceivedNotification.HandledResponse - /// - internal static string OIDCH_0008_SecurityTokenReceivedNotificationHandledResponse - { - get { return ResourceManager.GetString("OIDCH_0008_SecurityTokenReceivedNotificationHandledResponse"); } - } - - /// - /// OIDCH_0009: SecurityTokenReceivedNotification.Skipped - /// - internal static string OIDCH_0009_SecurityTokenReceivedNotificationSkipped - { - get { return ResourceManager.GetString("OIDCH_0009_SecurityTokenReceivedNotificationSkipped:"); } - } - - /// - /// OIDCH_0010: Validated Security Token must be a JwtSecurityToken was: '{0}'. - /// - internal static string OIDCH_0010_ValidatedSecurityTokenNotJwt - { - get { return ResourceManager.GetString("OIDCH_0010_ValidatedSecurityTokenNotJwt"); } - } - - /// - /// OIDCH_0011: Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'. - /// - internal static string OIDCH_0011_UnableToValidateToken - { - get { return ResourceManager.GetString("OIDCH_0011_UnableToValidateToken"); } - } - - /// - /// OIDCH_0012: SecurityTokenValidatedNotification.HandledResponse - /// - internal static string OIDCH_0012_SecurityTokenValidatedNotificationHandledResponse - { - get { return ResourceManager.GetString("OIDCH_0012_SecurityTokenValidatedNotificationHandledResponse"); } - } - - /// - /// OIDCH_0013: SecurityTokenValidatedNotification.Skipped - /// - internal static string OIDCH_0013_SecurityTokenValidatedNotificationSkipped - { - get { return ResourceManager.GetString("OIDCH_0013_SecurityTokenValidatedNotificationSkipped"); } - } - - /// - /// OIDCH_0014: AuthorizationCode received: '{0}' - /// - internal static string OIDCH_0014_AuthorizationCodeReceived - { - get { return ResourceManager.GetString("OIDCH_0014_AuthorizationCodeReceived"); } - } - - /// - /// OIDCH_0015: AuthorizationCodeReceivedNotification.HandledResponse - /// - internal static string OIDCH_0015_AuthorizationCodeReceivedNotificationHandledResponse - { - get { return ResourceManager.GetString("OIDCH_0015_AuthorizationCodeReceivedNotificationHandledResponse"); } - } - - /// - /// OIDCH_0016: codeReceivedNotification.Skipped - /// - internal static string OIDCH_0016_AuthorizationCodeReceivedNotificationSkipped - { - get { return ResourceManager.GetString("OIDCH_0016_AuthorizationCodeReceivedNotificationSkipped"); } - } - - /// - /// OIDCH_0017: Exception occurred while processing message. - /// - internal static string OIDCH_0017_ExceptionOccurredWhileProcessingMessage - { - get { return ResourceManager.GetString("OIDCH_0017_ExceptionOccurredWhileProcessingMessage"); } - } - - /// - /// OIDCH_0018: authenticationFailedNotification.HandledResponse - /// - internal static string OIDCH_0018_AuthenticationFailedNotificationHandledResponse - { - get { return ResourceManager.GetString("OIDCH_0018_AuthenticationFailedNotificationHandledResponse"); } - } - - /// - /// OIDCH_0019: authenticationFailedNotification.Skipped - /// - internal static string OIDCH_0019_AuthenticationFailedNotificationSkipped - { - get { return ResourceManager.GetString("OIDCH_0019_AuthenticationFailedNotificationSkipped"); } - } - - /// - /// OIDCH_0020: 'id_token' received: '{0}'. - /// - internal static string OIDCH_0020_IdTokenReceived - { - get { return ResourceManager.GetString("OIDCH_0020_IdTokenReceived"); } - } - - /// - /// OIDCH_0021: exception of type 'SecurityTokenSignatureKeyNotFoundException' thrown, Options.ConfigurationManager.RequestRefresh() called. - /// - internal static string OIDCH_0021_AutomaticConfigurationRefresh - { - get { return ResourceManager.GetString("OIDCH_0021_AutomaticConfigurationRefresh"); } - } - - } -} diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.resx b/src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.resx index fe1d1837d5..792e317a68 100644 --- a/src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.resx +++ b/src/Microsoft.AspNet.Authentication.OpenIdConnect/Resources.resx @@ -150,11 +150,11 @@ OIDCH_0033: ProtocolValidator.RequireNonce == true. The generated nonce already exists: this usually indicates the nonce is not unique or has been used. The nonce is: '{0}'. - - OIDCH_0034: RedirectToIdentityProviderNotification.HandledResponse + + OIDCH_0034: RedirectToIdentityProviderContext.HandledResponse - - OIDCH_0035: RedirectToIdentityProviderNotification.Skipped + + OIDCH_0035: RedirectToIdentityProviderContext.Skipped OIDCH_0036: Uri.IsWellFormedUriString(redirectUri, UriKind.Absolute) returned 'false', redirectUri is: '{0}'. @@ -177,11 +177,11 @@ OIDCH_0001: MessageReceived: '{0}'. - - OIDCH_0002: MessageReceivedNotification.HandledResponse + + OIDCH_0002: MessageReceivedContext.HandledResponse - - OIDCH_0003: MessageReceivedNotification.Skipped + + OIDCH_0003: MessageReceivedContext.Skipped OIDCH_0004: OpenIdConnectAuthenticationHandler: message.State is null or empty. @@ -195,11 +195,11 @@ OIDCH_0007: Updating configuration - - OIDCH_0008: SecurityTokenReceivedNotification.HandledResponse + + OIDCH_0008: SecurityTokenReceivedContext.HandledResponse - - OIDCH_0009: SecurityTokenReceivedNotification.Skipped + + OIDCH_0009: SecurityTokenReceivedContext.Skipped OIDCH_0010: Validated Security Token must be a JwtSecurityToken was: '{0}'. @@ -207,29 +207,29 @@ OIDCH_0011: Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'." - - OIDCH_0012: SecurityTokenValidatedNotification.HandledResponse + + OIDCH_0012: SecurityTokenValidatedContext.HandledResponse - - OIDCH_0013: SecurityTokenValidatedNotification.Skipped + + OIDCH_0013: SecurityTokenValidatedContext.Skipped OIDCH_0014: AuthorizationCode received: '{0}'. - - OIDCH_0015: AuthorizationCodeReceivedNotification.HandledResponse + + OIDCH_0015: AuthorizationCodeReceivedContext.HandledResponse - - OIDCH_0016: AuthorizationCodeReceivedNotification.Skipped + + OIDCH_0016: AuthorizationCodeReceivedContext.Skipped OIDCH_0017: Exception occurred while processing message. - - OIDCH_0018: AuthenticationFailedNotification.HandledResponse + + OIDCH_0018: AuthenticationFailedContext.HandledResponse - - OIDCH_0019: AuthenticationFailedNotification.Skipped + + OIDCH_0019: AuthenticationFailedContext.Skipped OIDCH_0020: 'id_token' received: '{0}' @@ -243,11 +243,11 @@ OIDCH_0042: Authorization Code redeemed: '{0}' - - OIDCH_0043: AuthorizationCodeRedeemedNotification.HandledResponse + + OIDCH_0043: AuthorizationCodeRedeemedContext.HandledResponse - - OIDCH_0044: AuthorizationCodeRedeemedNotification.Skipped + + OIDCH_0044: AuthorizationCodeRedeemedContext.Skipped OIDCH_0045: Cannot process the message. Both id_token and code are missing. diff --git a/src/Microsoft.AspNet.Authentication.Twitter/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Twitter/Properties/Resources.Designer.cs new file mode 100644 index 0000000000..9a385b546d --- /dev/null +++ b/src/Microsoft.AspNet.Authentication.Twitter/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +// +namespace Microsoft.AspNet.Authentication.Twitter +{ + using System.Globalization; + using System.Reflection; + using System.Resources; + + internal static class Resources + { + private static readonly ResourceManager _resourceManager + = new ResourceManager("Microsoft.AspNet.Authentication.Twitter.Resources", typeof(Resources).GetTypeInfo().Assembly); + + /// + /// The '{0}' option must be provided. + /// + internal static string Exception_OptionMustBeProvided + { + get { return GetString("Exception_OptionMustBeProvided"); } + } + + /// + /// The '{0}' option must be provided. + /// + internal static string FormatException_OptionMustBeProvided(object p0) + { + return string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string Exception_ValidatorHandlerMismatch + { + get { return GetString("Exception_ValidatorHandlerMismatch"); } + } + + /// + /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. + /// + internal static string FormatException_ValidatorHandlerMismatch() + { + return GetString("Exception_ValidatorHandlerMismatch"); + } + + 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; + } + } +} diff --git a/src/Microsoft.AspNet.Authentication.Twitter/Resources.Designer.cs b/src/Microsoft.AspNet.Authentication.Twitter/Resources.Designer.cs deleted file mode 100644 index 5e6c599ae4..0000000000 --- a/src/Microsoft.AspNet.Authentication.Twitter/Resources.Designer.cs +++ /dev/null @@ -1,81 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.32559 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNet.Authentication.Twitter { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Authentication.Twitter.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The '{0}' option must be provided.. - /// - internal static string Exception_OptionMustBeProvided { - get { - return ResourceManager.GetString("Exception_OptionMustBeProvided", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler.. - /// - internal static string Exception_ValidatorHandlerMismatch { - get { - return ResourceManager.GetString("Exception_ValidatorHandlerMismatch", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.AspNet.Authorization/Properties/Resources.Designer.cs b/src/Microsoft.AspNet.Authorization/Properties/Resources.Designer.cs index 29d82385f2..9242639ffa 100644 --- a/src/Microsoft.AspNet.Authorization/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNet.Authorization/Properties/Resources.Designer.cs @@ -10,6 +10,22 @@ namespace Microsoft.AspNet.Authorization private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Authorization.Resources", typeof(Resources).GetTypeInfo().Assembly); + /// + /// AuthorizationPolicy must have at least one requirement. + /// + internal static string Exception_AuthorizationPolicyEmpty + { + get { return GetString("Exception_AuthorizationPolicyEmpty"); } + } + + /// + /// AuthorizationPolicy must have at least one requirement. + /// + internal static string FormatException_AuthorizationPolicyEmpty() + { + return GetString("Exception_AuthorizationPolicyEmpty"); + } + /// /// The AuthorizationPolicy named: '{0}' was not found. /// @@ -26,22 +42,6 @@ namespace Microsoft.AspNet.Authorization return string.Format(CultureInfo.CurrentCulture, GetString("Exception_AuthorizationPolicyNotFound"), p0); } - /// - /// AuthorizationPolicy must have at least one requirement. - /// - internal static string Exception_AuthorizationPolicyEmpty - { - get { return GetString("Exception_AuthorizationPolicyEmpty"); } - } - - /// - /// AuthorizationPolicy must have at least one requirement. - /// - internal static string FormatException_AuthorizationPolicyEmpty(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Exception_AuthorizationPolicyEmpty"), p0); - } - /// /// At least one role must be specified. ///