From 3c5c5809eb48c525ddc05dd00405294a194ec8c7 Mon Sep 17 00:00:00 2001 From: Igor O Date: Wed, 17 Feb 2021 10:14:45 -0800 Subject: [PATCH] Fixed notification parameter for create user with OAuth (#1152) --- src/contracts/user.ts | 6 ++++++ src/services/usersService.ts | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/contracts/user.ts b/src/contracts/user.ts index 103cceba9..387362f05 100644 --- a/src/contracts/user.ts +++ b/src/contracts/user.ts @@ -59,4 +59,10 @@ export interface UserPropertiesContract { * Collection of user identities. */ identities?: UserIdentity[]; + + /** + * Application type. Required to send notification with proper urls in emails. + * + */ + appType: string; } \ No newline at end of file diff --git a/src/services/usersService.ts b/src/services/usersService.ts index 0f87da21d..2d2a51a49 100644 --- a/src/services/usersService.ts +++ b/src/services/usersService.ts @@ -293,11 +293,12 @@ export class UsersService { identities: [{ id: jwtToken.oid, provider: provider - }] + }], + appType: Constants.AppType }; const response = await this.httpClient.send({ - url: `${managementApiUrl}/users?api-version=${Constants.managementApiVersion}&appType=${Constants.AppType}`, + url: `${managementApiUrl}/users?api-version=${Constants.managementApiVersion}`, method: "POST", headers: [ { name: "Content-Type", value: "application/json" },