1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

platform specific identity client id

This commit is contained in:
Kyle Spearrin
2018-03-21 11:19:05 -04:00
parent e27df6bc09
commit 0b57d8b7f3
3 changed files with 5 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ export class ApiService implements ApiServiceAbstraction {
deviceType: string;
logoutCallback: Function;
constructor(private tokenService: TokenService, platformUtilsService: PlatformUtilsService,
constructor(private tokenService: TokenService, private platformUtilsService: PlatformUtilsService,
logoutCallback: Function) {
this.logoutCallback = logoutCallback;
this.deviceType = platformUtilsService.getDevice().toString();
@@ -75,7 +75,7 @@ export class ApiService implements ApiServiceAbstraction {
async postIdentityToken(request: TokenRequest): Promise<IdentityTokenResponse | IdentityTwoFactorResponse> {
const response = await fetch(new Request(this.identityBaseUrl + '/connect/token', {
body: this.qsStringify(request.toIdentityToken()),
body: this.qsStringify(request.toIdentityToken(this.platformUtilsService.identityClientId)),
cache: 'no-cache',
headers: new Headers({
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',