feat(patcher): Implement DualAuth patcher with enhanced server patching

- Introduce DualAuthPatcher with support for hybrid authentication
- Update default auth domain to `auth.sanasol.ws`
- Integrate Java detection and bundled JRE handling for patcher execution
- Add server patch flag for avoiding redundant patching
- Automate DualAuthPatcher setup: download, compile, and execute with dependencies
- Enhance patching logic for extended logging and modularity
This commit is contained in:
sanasol
2026-01-25 01:27:19 +01:00
parent 3d54cea9e7
commit d87db04653
4 changed files with 378 additions and 89 deletions

View File

@@ -4,7 +4,7 @@ const os = require('os');
// Default auth domain - can be overridden by env var or config
const DEFAULT_AUTH_DOMAIN = 'sanasol.ws';
const DEFAULT_AUTH_DOMAIN = 'auth.sanasol.ws';
// Get auth domain from env, config, or default
function getAuthDomain() {
@@ -26,9 +26,10 @@ function getAuthDomain() {
}
// Get full auth server URL
// Domain already includes subdomain (auth.sanasol.ws), so use directly
function getAuthServerUrl() {
const domain = getAuthDomain();
return `https://sessions.${domain}`;
return `https://${domain}`;
}
// Save auth domain to config