fix: use official Weeztix OAuth login and token URLs

Redirect to login.weeztix.com/login per docs; default token host to
auth.weeztix.com. Open Ticket setups can override via env.

Made-with: Cursor
This commit is contained in:
2026-04-05 09:51:11 +02:00
parent d3abdb7ed9
commit a3158ffa34
3 changed files with 32 additions and 9 deletions

View File

@@ -52,9 +52,9 @@ class WeeztixOAuthController extends Controller
'state' => $state,
]);
$authorizeBase = rtrim(config('weeztix.auth_base_url'), '/').'/tokens/authorize';
$authorizeUrl = config('weeztix.oauth_authorize_url');
return redirect()->away($authorizeBase.'?'.$query);
return redirect()->away($authorizeUrl.'?'.$query);
}
public function callback(Request $request): RedirectResponse