From 4f58d4cb0597c72f9d5292f02d6c1e29061bdf93 Mon Sep 17 00:00:00 2001 From: Amedeo Lepore Date: Thu, 13 Jul 2023 13:06:46 +0200 Subject: [PATCH] Fix login component doesn't add the authorization header --- lib/core/src/lib/auth/services/authentication.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/lib/auth/services/authentication.service.ts b/lib/core/src/lib/auth/services/authentication.service.ts index 3680f52db6..0b0a3b76bb 100644 --- a/lib/core/src/lib/auth/services/authentication.service.ts +++ b/lib/core/src/lib/auth/services/authentication.service.ts @@ -63,7 +63,7 @@ export class AuthenticationService implements AuthenticationServiceInterface, ee } addTokenToHeader(requestUrl: string, headersArg?: HttpHeaders): Observable { - return this.isOauth() ? this.oidcAuthenticationService.addTokenToHeader(requestUrl, headersArg) : from([headersArg]); + return this.isOauth() ? this.oidcAuthenticationService.addTokenToHeader(requestUrl, headersArg) : this.basicAlfrescoAuthService.addTokenToHeader(requestUrl, headersArg); } isECMProvider(): boolean {