feat: add guided login and authlib URL setup

This commit is contained in:
Anon 2026-07-26 14:17:59 +02:00
parent 47bc47786a
commit 630a5fabef
10 changed files with 528 additions and 66 deletions

View file

@ -2011,6 +2011,15 @@ namespace MinecraftClient {
return ResourceManager.GetString("Main.General.AuthlibServer", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Authlib-injector URL to use for Yggdrasil accounts. It must use http or https and include any required path..
/// </summary>
internal static string Main_General_AuthServerUrl {
get {
return ResourceManager.GetString("Main.General.AuthServerUrl", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Yggdrasil authlib multi-user selection..

View file

@ -983,6 +983,9 @@ Note: This does NOT require a Bot Token, only an Application ID. Discord must be
<data name="Main.General.AuthlibServer" xml:space="preserve">
<value>authlib-injector authentication server to use for Yggdrasil accounts</value>
</data>
<data name="Main.General.AuthServerUrl" xml:space="preserve">
<value>Authlib-injector URL to use for Yggdrasil accounts. It must use http or https and include any required path.</value>
</data>
<data name="AuthlibServer.Host" xml:space="preserve">
<value>Domain name or IP address</value>
</data>

View file

@ -5998,6 +5998,24 @@ namespace MinecraftClient {
return ResourceManager.GetString("mcc.connecting", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Select a login method: [1] Offline, [2] Online (Microsoft), [3] Yggdrasil.
/// </summary>
internal static string mcc_auth_method_prompt {
get {
return ResourceManager.GetString("mcc.auth_method_prompt", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please choose 1, 2, or 3..
/// </summary>
internal static string mcc_auth_method_invalid {
get {
return ResourceManager.GetString("mcc.auth_method_invalid", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tip: try TUI mode for a cleaner interface, mouse-friendly container actions, and a nicer layout. Run {0}feature tui§8 to switch [Console.General] ConsoleMode to &quot;tui&quot; for the next restart..
@ -6271,6 +6289,114 @@ namespace MinecraftClient {
return ResourceManager.GetString("mcc.password_hidden", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Authlib server host:.
/// </summary>
internal static string mcc_yggdrasil_host {
get {
return ResourceManager.GetString("mcc.yggdrasil_host", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Authlib server port [{0}]:.
/// </summary>
internal static string mcc_yggdrasil_port {
get {
return ResourceManager.GetString("mcc.yggdrasil_port", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Authlib-Injector API path [{0}]:.
/// </summary>
internal static string mcc_yggdrasil_api_path {
get {
return ResourceManager.GetString("mcc.yggdrasil_api_path", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Use HTTPS? [Y/n].
/// </summary>
internal static string mcc_yggdrasil_use_https {
get {
return ResourceManager.GetString("mcc.yggdrasil_use_https", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The authlib server host cannot be empty..
/// </summary>
internal static string mcc_yggdrasil_invalid_host {
get {
return ResourceManager.GetString("mcc.yggdrasil_invalid_host", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The authlib server port must be between 1 and 65535..
/// </summary>
internal static string mcc_yggdrasil_invalid_port {
get {
return ResourceManager.GetString("mcc.yggdrasil_invalid_port", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please answer yes or no..
/// </summary>
internal static string mcc_yggdrasil_invalid_yes_no {
get {
return ResourceManager.GetString("mcc.yggdrasil_invalid_yes_no", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Authlib-injector URL:.
/// </summary>
internal static string mcc_yggdrasil_url {
get {
return ResourceManager.GetString("mcc.yggdrasil_url", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The authlib-injector URL must be an absolute HTTP or HTTPS URL..
/// </summary>
internal static string mcc_yggdrasil_invalid_url {
get {
return ResourceManager.GetString("mcc.yggdrasil_invalid_url", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not reach the authlib-injector server. Check the URL and try again..
/// </summary>
internal static string mcc_yggdrasil_server_unreachable {
get {
return ResourceManager.GetString("mcc.yggdrasil_server_unreachable", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The server did not return valid authlib-injector metadata. Check the URL and try again..
/// </summary>
internal static string mcc_yggdrasil_server_invalid {
get {
return ResourceManager.GetString("mcc.yggdrasil_server_invalid", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The configured authlib-injector URL must be an absolute HTTP or HTTPS URL..
/// </summary>
internal static string config_auth_server_url_invalid {
get {
return ResourceManager.GetString("config.auth_server_url_invalid", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You are dead. Type &apos;{0}respawn&apos; to respawn..

View file

@ -2004,6 +2004,27 @@ You can use "/chunk status {0:0.0} {1:0.0} {2:0.0}" to check the chunk loading s
<data name="mcc.connecting" xml:space="preserve">
<value>Connecting to {0}...</value>
</data>
<data name="mcc.auth_method_prompt" xml:space="preserve">
<value>Select a login method: [1] Offline, [2] Online (Microsoft), [3] Yggdrasil</value>
</data>
<data name="mcc.auth_method_invalid" xml:space="preserve">
<value>Please choose 1, 2, or 3.</value>
</data>
<data name="mcc.yggdrasil_url" xml:space="preserve">
<value>Authlib-injector URL:</value>
</data>
<data name="mcc.yggdrasil_invalid_url" xml:space="preserve">
<value>The authlib-injector URL must be an absolute HTTP or HTTPS URL.</value>
</data>
<data name="mcc.yggdrasil_server_unreachable" xml:space="preserve">
<value>Could not reach the authlib-injector server. Check the URL and try again.</value>
</data>
<data name="mcc.yggdrasil_server_invalid" xml:space="preserve">
<value>The server did not return valid authlib-injector metadata. Check the URL and try again.</value>
</data>
<data name="config.auth_server_url_invalid" xml:space="preserve">
<value>The configured authlib-injector URL must be an absolute HTTP or HTTPS URL.</value>
</data>
<data name="mcc.console_mode_tui_recommendation" xml:space="preserve">
<value>Tip: try TUI mode for a cleaner interface, mouse-friendly inventory actions, and a nicer layout. Run {0}tryout tui§8 to switch [Console.General] ConsoleMode to "tui" for the next restart.</value>
</data>
@ -2097,6 +2118,27 @@ Type '{0}quit' to leave the server.</value>
<data name="mcc.password_hidden" xml:space="preserve">
<value>Password(invisible): </value>
</data>
<data name="mcc.yggdrasil_host" xml:space="preserve">
<value>Authlib server host:</value>
</data>
<data name="mcc.yggdrasil_port" xml:space="preserve">
<value>Authlib server port [{0}]:</value>
</data>
<data name="mcc.yggdrasil_api_path" xml:space="preserve">
<value>Authlib-Injector API path [{0}]:</value>
</data>
<data name="mcc.yggdrasil_use_https" xml:space="preserve">
<value>Use HTTPS? [Y/n]</value>
</data>
<data name="mcc.yggdrasil_invalid_host" xml:space="preserve">
<value>The authlib server host cannot be empty.</value>
</data>
<data name="mcc.yggdrasil_invalid_port" xml:space="preserve">
<value>The authlib server port must be between 1 and 65535.</value>
</data>
<data name="mcc.yggdrasil_invalid_yes_no" xml:space="preserve">
<value>Please answer yes or no.</value>
</data>
<data name="mcc.player_dead" xml:space="preserve">
<value>You are dead. Type '{0}respawn' to respawn.</value>
</data>