This is an automated email from the ASF dual-hosted git repository. marat pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push: new a361b18e Basic fix a361b18e is described below commit a361b18ee53ea4904e535189963342f0feb84a06 Author: Marat Gubaidullin <ma...@talismancloud.io> AuthorDate: Tue Mar 5 21:44:28 2024 -0500 Basic fix --- karavan-app/src/main/webui/src/api/LogWatchApi.tsx | 2 ++ karavan-app/src/main/webui/src/api/NotificationApi.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/karavan-app/src/main/webui/src/api/LogWatchApi.tsx b/karavan-app/src/main/webui/src/api/LogWatchApi.tsx index f761f7b3..eb8abf73 100644 --- a/karavan-app/src/main/webui/src/api/LogWatchApi.tsx +++ b/karavan-app/src/main/webui/src/api/LogWatchApi.tsx @@ -32,6 +32,8 @@ export class LogWatchApi { } else if (KaravanApi.authType === 'basic' && KaravanApi.basicToken?.length > 0) { headers.Authorization = "Basic " + KaravanApi.basicToken ready = true; + } else { + ready = KaravanApi.authType === 'public'; } if (ready) { await fetchEventSource("/api/logwatch/" + type + "/" + podName, { diff --git a/karavan-app/src/main/webui/src/api/NotificationApi.tsx b/karavan-app/src/main/webui/src/api/NotificationApi.tsx index c4971e17..93692dd7 100644 --- a/karavan-app/src/main/webui/src/api/NotificationApi.tsx +++ b/karavan-app/src/main/webui/src/api/NotificationApi.tsx @@ -50,6 +50,8 @@ export class NotificationApi { } else if (KaravanApi.authType === 'basic' && KaravanApi.basicToken?.length > 0) { headers.Authorization = "Basic " + KaravanApi.basicToken ready = true; + } else { + ready = KaravanApi.authType === 'public'; } if (ready) { NotificationApi.fetch('/api/notification/system', controller, headers,