From b3020ca55c2e9b9ad4007653161d69765b617c1b Mon Sep 17 00:00:00 2001 From: Adam Saghy Date: Thu, 28 Mar 2024 16:55:33 +0100 Subject: [PATCH] Remove hardcoded client secret --- src/app/core/authentication/authentication.service.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/core/authentication/authentication.service.ts b/src/app/core/authentication/authentication.service.ts index b33f2ae5f..d4ab19cbc 100644 --- a/src/app/core/authentication/authentication.service.ts +++ b/src/app/core/authentication/authentication.service.ts @@ -93,7 +93,6 @@ export class AuthenticationService { let httpParams = new HttpParams(); httpParams = httpParams.set('client_id', 'community-app'); httpParams = httpParams.set('grant_type', 'password'); - httpParams = httpParams.set('client_secret', '123'); return this.http.disableApiPrefix().post(`${environment.oauth.serverUrl}/oauth/token`, {}, { params: httpParams }) .pipe( map((tokenResponse: OAuth2Token) => { @@ -147,7 +146,6 @@ export class AuthenticationService { let httpParams = new HttpParams(); httpParams = httpParams.set('client_id', 'community-app'); httpParams = httpParams.set('grant_type', 'refresh_token'); - httpParams = httpParams.set('client_secret', '123'); httpParams = httpParams.set('refresh_token', oAuthRefreshToken); this.http.disableApiPrefix().post(`${environment.oauth.serverUrl}/oauth/token`, {}, { params: httpParams }) .subscribe((tokenResponse: OAuth2Token) => {