mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
auth service enhancements (#1860)
This commit is contained in:
committed by
Eugenio Romano
parent
af82f83669
commit
608b3639ea
@@ -167,6 +167,28 @@ export class AlfrescoAuthenticationService {
|
|||||||
return this.alfrescoApi.getInstance().bpmAuth && !!this.alfrescoApi.getInstance().bpmAuth.isLoggedIn();
|
return this.alfrescoApi.getInstance().bpmAuth && !!this.alfrescoApi.getInstance().bpmAuth.isLoggedIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the ECM username
|
||||||
|
*
|
||||||
|
* @returns {string} The username value
|
||||||
|
*
|
||||||
|
* @memberof AlfrescoAuthenticationService
|
||||||
|
*/
|
||||||
|
getEcmUsername(): string {
|
||||||
|
return this.alfrescoApi.getInstance().ecmAuth.username;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the BPM username
|
||||||
|
*
|
||||||
|
* @returns {string} The username value
|
||||||
|
*
|
||||||
|
* @memberof AlfrescoAuthenticationService
|
||||||
|
*/
|
||||||
|
getBpmUsername(): string {
|
||||||
|
return this.alfrescoApi.getInstance().bpmAuth.username;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The method write the error in the console browser
|
* The method write the error in the console browser
|
||||||
* @param error
|
* @param error
|
||||||
|
Reference in New Issue
Block a user