mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
Merge pull request #556 from bitwarden/bugfix-ssologinsync
perform full sync upon successful login with sso
This commit is contained in:
commit
0bcb4c100a
@ -13,6 +13,7 @@ import { PasswordGenerationService } from 'jslib/abstractions/passwordGeneration
|
|||||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||||
import { StateService } from 'jslib/abstractions/state.service';
|
import { StateService } from 'jslib/abstractions/state.service';
|
||||||
import { StorageService } from 'jslib/abstractions/storage.service';
|
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||||
|
import { SyncService } from 'jslib/abstractions/sync.service';
|
||||||
|
|
||||||
import { SsoComponent as BaseSsoComponent } from 'jslib/angular/components/sso.component';
|
import { SsoComponent as BaseSsoComponent } from 'jslib/angular/components/sso.component';
|
||||||
|
|
||||||
@ -22,13 +23,16 @@ import { SsoComponent as BaseSsoComponent } from 'jslib/angular/components/sso.c
|
|||||||
})
|
})
|
||||||
export class SsoComponent extends BaseSsoComponent {
|
export class SsoComponent extends BaseSsoComponent {
|
||||||
constructor(authService: AuthService, router: Router,
|
constructor(authService: AuthService, router: Router,
|
||||||
i18nService: I18nService, route: ActivatedRoute,
|
i18nService: I18nService, syncService: SyncService, route: ActivatedRoute,
|
||||||
storageService: StorageService, stateService: StateService,
|
storageService: StorageService, stateService: StateService,
|
||||||
platformUtilsService: PlatformUtilsService, apiService: ApiService,
|
platformUtilsService: PlatformUtilsService, apiService: ApiService,
|
||||||
cryptoFunctionService: CryptoFunctionService,
|
cryptoFunctionService: CryptoFunctionService,
|
||||||
passwordGenerationService: PasswordGenerationService) {
|
passwordGenerationService: PasswordGenerationService) {
|
||||||
super(authService, router, i18nService, route, storageService, stateService, platformUtilsService,
|
super(authService, router, i18nService, route, storageService, stateService, platformUtilsService,
|
||||||
apiService, cryptoFunctionService, passwordGenerationService);
|
apiService, cryptoFunctionService, passwordGenerationService);
|
||||||
|
super.onSuccessfulLogin = () => {
|
||||||
|
return syncService.fullSync(true);
|
||||||
|
};
|
||||||
this.redirectUri = 'bitwarden://sso-callback';
|
this.redirectUri = 'bitwarden://sso-callback';
|
||||||
this.clientId = 'desktop';
|
this.clientId = 'desktop';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user