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:
@@ -6,16 +6,34 @@ return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| OAuth / token host (authorization code + refresh)
|
||||
| OAuth login / authorization (browser redirect)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Defaults match the integration spec (Open Ticket auth). Token requests
|
||||
| use {auth_base_url}/tokens; authorize URL is {auth_base_url}/tokens/authorize
|
||||
| when using the same host layout as Weeztix/Open Ticket.
|
||||
| Official Weeztix: users must be sent to login.weeztix.com with client_id,
|
||||
| redirect_uri, response_type=code, and state. Do NOT use auth.../tokens/authorize
|
||||
| unless your OAuth provider documents that path (e.g. some Open Ticket setups).
|
||||
|
|
||||
| Open Ticket example (if your client was created there):
|
||||
| WEEZTIX_OAUTH_AUTHORIZE_URL=https://auth.openticket.tech/tokens/authorize
|
||||
| WEEZTIX_AUTH_BASE_URL=https://auth.openticket.tech
|
||||
|
|
||||
*/
|
||||
|
||||
'auth_base_url' => rtrim((string) env('WEEZTIX_AUTH_BASE_URL', 'https://auth.openticket.tech'), '/'),
|
||||
'oauth_authorize_url' => rtrim((string) env(
|
||||
'WEEZTIX_OAUTH_AUTHORIZE_URL',
|
||||
'https://login.weeztix.com/login'
|
||||
), '/'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Token endpoint base (authorization code + refresh)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| POST {auth_base_url}/tokens — official Weeztix: https://auth.weeztix.com/tokens
|
||||
|
|
||||
*/
|
||||
|
||||
'auth_base_url' => rtrim((string) env('WEEZTIX_AUTH_BASE_URL', 'https://auth.weeztix.com'), '/'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -30,8 +48,7 @@ return [
|
||||
| Current user profile (token validity + company hints)
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Documented at https://docs.weeztix.com/docs/introduction/issue-request/
|
||||
| Uses auth.weeztix.com by default; override if your token issuer uses another host.
|
||||
| Should match the issuer of your access_token (usually same host as auth_base_url).
|
||||
|
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user