mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user