π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π Skip the header auth when not enabled
Alicia Sykes963952119b2f
diff --git a/src/utils/auth/Auth.js b/src/utils/auth/Auth.jsindex d221fb1c..0d5d75c4 100644--- a/src/utils/auth/Auth.js+++ b/src/utils/auth/Auth.js@@ -2,6 +2,7 @@ import sha256 from 'crypto-js/sha256';import ConfigAccumulator from '@/utils/config/ConfigAccumalator';import ErrorHandler from '@/utils/logging/ErrorHandler';import { cookieKeys, localStorageKeys, userStateEnum } from '@/utils/config/defaults';+import getApiAuthHeader from '@/utils/auth/getApiAuthHeader';import { isKeycloakEnabled } from '@/utils/auth/KeycloakAuth';import { isOidcEnabled } from '@/utils/auth/OidcAuth';@@ -67,6 +68,7 @@ export const getCookieToken = () => {};export const makeBasicAuthHeaders = () => {+ if (getApiAuthHeader()) return {};const token = getCookieToken();const bearerAuth = (token && token.length > 5) ? `Bearer ${token}` : null;