mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Fix unit test '[ECM] should return a ticket undefined after logout'
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
import { Injectable, Injector } from '@angular/core';
|
import { Injectable, Injector } from '@angular/core';
|
||||||
import { OidcAuthenticationService } from './oidc-authentication.service';
|
import { OidcAuthenticationService } from './oidc-authentication.service';
|
||||||
import { BasicAlfrescoAuthService } from '../basic-auth/basic-alfresco-auth.service';
|
import { BasicAlfrescoAuthService } from '../basic-auth/basic-alfresco-auth.service';
|
||||||
import { Observable, of } from 'rxjs';
|
import { Observable, from } from 'rxjs';
|
||||||
import { BaseAuthenticationService } from './base-authentication.service';
|
import { BaseAuthenticationService } from './base-authentication.service';
|
||||||
import { AppConfigService } from '../../app-config';
|
import { AppConfigService } from '../../app-config';
|
||||||
import { CookieService, LogService } from '../../common';
|
import { CookieService, LogService } from '../../common';
|
||||||
@@ -70,7 +70,7 @@ export class AuthenticationService extends BaseAuthenticationService {
|
|||||||
if (this.isOauth()) {
|
if (this.isOauth()) {
|
||||||
return this.oidcAuthenticationService.logout();
|
return this.oidcAuthenticationService.logout();
|
||||||
} else {
|
} else {
|
||||||
return of(this.basicAlfrescoAuthService.logout());
|
return from(this.basicAlfrescoAuthService.logout());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user