From 1263786b90250f6a6eb4e34ff905ba7fd575b213 Mon Sep 17 00:00:00 2001 From: louispaulb Date: Fri, 27 Mar 2026 13:39:11 -0400 Subject: [PATCH] fix: update service token + fix API proxy routing - Regenerated Admin API token (old one was invalidated by generate_keys) - Traefik: separate routers for app (with Authentik) and /api/ (no auth) - Nginx proxy: use container IP (cross-compose DNS doesn't resolve names) - /outpost.goauthentik.io/ route for Authentik callbacks Co-Authored-By: Claude Opus 4.6 (1M context) --- src/api/auth.js | 2 +- src/stores/auth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/auth.js b/src/api/auth.js index f8b3c6b..4457992 100644 --- a/src/api/auth.js +++ b/src/api/auth.js @@ -5,7 +5,7 @@ // ───────────────────────────────────────────────────────────────────────────── import { BASE_URL } from 'src/config/erpnext' -const SERVICE_TOKEN = 'b273a666c86d2d0:613842e506d13b8' +const SERVICE_TOKEN = 'b273a666c86d2d0:06120709db5e414' export function authFetch (url, opts = {}) { opts.headers = { ...opts.headers, Authorization: 'token ' + SERVICE_TOKEN } diff --git a/src/stores/auth.js b/src/stores/auth.js index 7487693..41db883 100644 --- a/src/stores/auth.js +++ b/src/stores/auth.js @@ -9,7 +9,7 @@ import { ref } from 'vue' import { BASE_URL } from 'src/config/erpnext' // Service token for ERPNext API — all dispatch API calls use this -const ERP_SERVICE_TOKEN = 'b273a666c86d2d0:613842e506d13b8' +const ERP_SERVICE_TOKEN = 'b273a666c86d2d0:06120709db5e414' export const useAuthStore = defineStore('auth', () => { const user = ref(null)