From da9dcfaa416e81d0bbd5736357d4dba9307c8e15 Mon Sep 17 00:00:00 2001 From: Hans Date: Wed, 31 Jul 2024 09:35:43 +0200 Subject: [PATCH] fix(auth): update authorization header to `Basic` --- auth/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/auth.ts b/auth/auth.ts index e33ebb7..9232bc7 100644 --- a/auth/auth.ts +++ b/auth/auth.ts @@ -40,7 +40,7 @@ export class RestApiKeyAuthentication implements SecurityAuthentication { } public async applySecurityAuthentication(context: RequestContext) { - context.setHeaderParam("Authorization", "Bearer " + await this.tokenProvider.getToken()); + context.setHeaderParam("Authorization", "Basic " + await this.tokenProvider.getToken()); } } @@ -60,7 +60,7 @@ export class UserAuthKeyAuthentication implements SecurityAuthentication { } public async applySecurityAuthentication(context: RequestContext) { - context.setHeaderParam("Authorization", "Bearer " + await this.tokenProvider.getToken()); + context.setHeaderParam("Authorization", "Basic " + await this.tokenProvider.getToken()); } }