mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[AAE-12501] Call implicitLogin by authentication service
This commit is contained in:
@@ -25,7 +25,6 @@ import { AuthenticationService } from '../../auth/services/authentication.servic
|
|||||||
import { OauthConfigModel } from '../../auth/models/oauth-config.model';
|
import { OauthConfigModel } from '../../auth/models/oauth-config.model';
|
||||||
import { TranslationService } from '../../translation/translation.service';
|
import { TranslationService } from '../../translation/translation.service';
|
||||||
import { UserPreferencesService } from '../../common/services/user-preferences.service';
|
import { UserPreferencesService } from '../../common/services/user-preferences.service';
|
||||||
import { AlfrescoApiService } from '../../services/alfresco-api.service';
|
|
||||||
|
|
||||||
import { LoginErrorEvent } from '../models/login-error.event';
|
import { LoginErrorEvent } from '../models/login-error.event';
|
||||||
import { LoginSubmitEvent } from '../models/login-submit.event';
|
import { LoginSubmitEvent } from '../models/login-submit.event';
|
||||||
@@ -137,8 +136,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|||||||
private appConfig: AppConfigService,
|
private appConfig: AppConfigService,
|
||||||
private userPreferences: UserPreferencesService,
|
private userPreferences: UserPreferencesService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private sanitizer: DomSanitizer,
|
private sanitizer: DomSanitizer
|
||||||
private alfrescoApiService: AlfrescoApiService
|
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,7 +187,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
redirectToImplicitLogin() {
|
redirectToImplicitLogin() {
|
||||||
this.alfrescoApiService.getInstance().oauth2Auth.implicitLogin();
|
this.authService.ssoImplicitLogin();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user