From 6877db6a535e57fd1d7e01c966a6451dc6f186f0 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 24 Apr 2021 19:13:35 +0800 Subject: refactor: Refactor auth handler messages. --- BackEnd/Timeline/Auth/Resource.Designer.cs | 153 +++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 BackEnd/Timeline/Auth/Resource.Designer.cs (limited to 'BackEnd/Timeline/Auth/Resource.Designer.cs') diff --git a/BackEnd/Timeline/Auth/Resource.Designer.cs b/BackEnd/Timeline/Auth/Resource.Designer.cs new file mode 100644 index 00000000..e9ef970e --- /dev/null +++ b/BackEnd/Timeline/Auth/Resource.Designer.cs @@ -0,0 +1,153 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Timeline.Auth { + 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", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resource { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resource() { + } + + /// + /// 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("Timeline.Auth.Resource", typeof(Resource).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 Token is found in authorization header. Token is {0} .. + /// + internal static string LogTokenFoundInHeader { + get { + return ResourceManager.GetString("LogTokenFoundInHeader", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Token is found in query param with key "{0}". Token is {1} .. + /// + internal static string LogTokenFoundInQuery { + get { + return ResourceManager.GetString("LogTokenFoundInQuery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No jwt token is found.. + /// + internal static string LogTokenNotFound { + get { + return ResourceManager.GetString("LogTokenNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A jwt token validation failed. Error reason: {0}. + /// + internal static string LogTokenValidationFail { + get { + return ResourceManager.GetString("LogTokenValidationFail", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You must use a token to authenticate to access this resource.. + /// + internal static string MessageNoToken { + get { + return ResourceManager.GetString("MessageNoToken", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The token is of bad format. It might not be created by this server.. + /// + internal static string MessageTokenBadFormat { + get { + return ResourceManager.GetString("MessageTokenBadFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The token is out of date and expired. Please create a new one.. + /// + internal static string MessageTokenTimeExpired { + get { + return ResourceManager.GetString("MessageTokenTimeExpired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A unknown error occured when verify token.. + /// + internal static string MessageTokenUnknownError { + get { + return ResourceManager.GetString("MessageTokenUnknownError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The owner of the token does not exist. It might have been deleted.. + /// + internal static string MessageTokenUserNotExist { + get { + return ResourceManager.GetString("MessageTokenUserNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The token is of old version and expired. Please create a new one.. + /// + internal static string MessageTokenVersionExpired { + get { + return ResourceManager.GetString("MessageTokenVersionExpired", resourceCulture); + } + } + } +} -- cgit v1.2.3