[MNT-22334] ADW - User information not displayed when Kerberos is in use (#7172)

* [MNT-22334] ADW - User information not displayed when Kerberos is in use

* * enable kerberos

* * added test

* Revert "* enable kerberos"
This commit is contained in:
Dharan
2021-08-02 15:00:09 +05:30
committed by GitHub
parent 94d908e51a
commit 4befb779f8
2 changed files with 23 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ describe('AuthenticationService', () => {
beforeEach(() => {
appConfigService.config.providers = 'ECM';
appConfigService.config.auth = { withCredentials: false };
appConfigService.load();
apiService.reset();
});
@@ -186,12 +187,20 @@ describe('AuthenticationService', () => {
it('[ECM] should return isBpmLoggedIn false', () => {
expect(authService.isBpmLoggedIn()).toBe(false);
});
it('[ECM] should return true if kerberos configured', () => {
appConfigService.config.auth.withCredentials = true ;
expect(authService.isLoggedInWith('ECM')).toBe(true);
expect(authService.isLoggedIn()).toBe(true);
});
});
describe('when the setting is BPM', () => {
beforeEach(() => {
appConfigService.config.providers = 'BPM';
appConfigService.config.auth = { withCredentials: false };
appConfigService.load();
apiService.reset();
});
@@ -321,6 +330,7 @@ describe('AuthenticationService', () => {
beforeEach(() => {
appConfigService.config.providers = 'ECM';
appConfigService.config.auth = { withCredentials: false };
appConfigService.load();
apiService.reset();
});
@@ -385,6 +395,7 @@ describe('AuthenticationService', () => {
beforeEach(() => {
appConfigService.config.providers = 'ALL';
appConfigService.config.auth = { withCredentials: false };
appConfigService.load();
apiService.reset();
});