mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
fix unit
This commit is contained in:
@@ -45,7 +45,7 @@ export abstract class BaseAuthenticationService implements AuthenticationService
|
|||||||
ee(this);
|
ee(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract getAuthHeaders(requestUrl: string, header: HttpHeaders): HttpHeaders;
|
abstract getAuthHeaders(requestUrl: string, header: HttpHeaders): HttpHeaders;
|
||||||
|
|
||||||
abstract getToken(): string;
|
abstract getToken(): string;
|
||||||
|
|
||||||
@@ -98,8 +98,12 @@ export abstract class BaseAuthenticationService implements AuthenticationService
|
|||||||
* @returns True if supported, false otherwise
|
* @returns True if supported, false otherwise
|
||||||
*/
|
*/
|
||||||
isBPMProvider(): boolean {
|
isBPMProvider(): boolean {
|
||||||
const provider = <string>this.appConfig.get('providers');
|
const provider = this.appConfig.get('providers');
|
||||||
return provider && provider.toUpperCase() === 'BPM';
|
if (provider && (typeof provider === 'string' || provider instanceof String)) {
|
||||||
|
return provider && provider.toUpperCase() === 'BPM';
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user