[ADF-2289] Login with oauth2 provider (#2924)

* Fix oauth2 provider

* Add the schema validation

* Improve the login doc with provider "OAUTH"

* fix doc
This commit is contained in:
Maurizio Vitale
2018-02-12 15:25:03 +00:00
committed by Eugenio Romano
parent 3368607aff
commit 37561d1d27
4 changed files with 64 additions and 2 deletions

View File

@@ -174,6 +174,7 @@ export class AuthenticationService {
saveTickets(): void {
this.saveTicketEcm();
this.saveTicketBpm();
this.saveTicketAuth();
}
/**
@@ -194,6 +195,15 @@ export class AuthenticationService {
}
}
/**
* The method save the AUTH ticket in the Storage
*/
saveTicketAuth(): void {
if (this.alfrescoApi.getInstance() && (<any>this.alfrescoApi.getInstance()).getTicketAuth()) {
this.storage.setItem('ticket-AUTH', (<any>this.alfrescoApi.getInstance()).getTicketAuth());
}
}
/**
* The method return true if user is logged in on ecm provider
*