mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @param error
|
||||
|
Reference in New Issue
Block a user