Skip to content

Commit 0657007

Browse files
committed
refactor(calm-hub): addressing review comments
1 parent c17b94b commit 0657007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

calm-hub-ui/src/authService.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const config = {
1212
loadUserInfo: true,
1313
};
1414

15-
//Set AUTH_SERVICE_OIDC_ENABLE to true, when backend running with secure profile.
15+
//Set AUTH_SERVICE_OIDC_ENABLE to true only when the backend is running with a secure profile and is NOT behind an ADC/Reverse-Proxy that handles user authentication.
1616
export const AUTH_SERVICE_OIDC_ENABLE: boolean = false;
1717
let userManager: UserManager | null = null;
1818

@@ -22,7 +22,7 @@ export function isAuthServiceEnabled(): boolean {
2222
typeof window !== 'undefined' &&
2323
typeof window.location !== 'undefined' &&
2424
window.location.protocol === 'https:';
25-
return Boolean(oidcEnabled && isHttps);
25+
return (oidcEnabled && isHttps);
2626
}
2727

2828
if (isAuthServiceEnabled()) {

0 commit comments

Comments
 (0)