From 4bc6809e79eebe9dc9a31e39a27e09d745e85f93 Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 11 Oct 2024 16:35:37 +0800 Subject: [PATCH 1/2] Update impersonation.md --- docs/en/modules/account/impersonation.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/en/modules/account/impersonation.md b/docs/en/modules/account/impersonation.md index a086729054..e988a57e4e 100644 --- a/docs/en/modules/account/impersonation.md +++ b/docs/en/modules/account/impersonation.md @@ -258,6 +258,28 @@ if (!consoleAndAngularClientId.IsNullOrWhiteSpace()) } ``` +Add `impersonation: { userImpersonation: true, tenantImpersonation: true}` object to `oAuthConfig` of `environment`. + +```cs +export const environment = { + production: false, + application: { + baseUrl, + name: 'MyProjectName', + }, + oAuthConfig: { + issuer: 'https://localhost:44305/', + clientId: 'MyProjectName_App', + scope: 'offline_access MyProjectName', + redirectUri: baseUrl, + // responseType: 'code', + impersonation: { + userImpersonation: true, + tenantImpersonation: true, + }, + }, +``` + ### Blazor WASM It is currently not supported. From 326a8d9b4a323e29190400cd90f01cf98bb18e4e Mon Sep 17 00:00:00 2001 From: Masum ULU <49063256+masum-ulu@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:13:20 +0300 Subject: [PATCH 2/2] update angular section of impersonation document --- docs/en/modules/account/impersonation.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/en/modules/account/impersonation.md b/docs/en/modules/account/impersonation.md index e988a57e4e..ed008c6418 100644 --- a/docs/en/modules/account/impersonation.md +++ b/docs/en/modules/account/impersonation.md @@ -258,21 +258,13 @@ if (!consoleAndAngularClientId.IsNullOrWhiteSpace()) } ``` -Add `impersonation: { userImpersonation: true, tenantImpersonation: true}` object to `oAuthConfig` of `environment`. +Add `impersonation: { userImpersonation: true, tenantImpersonation: true}` object to `oAuthConfig` of `environment` if not exits. -```cs +```js export const environment = { - production: false, - application: { - baseUrl, - name: 'MyProjectName', - }, + //Other props.. oAuthConfig: { - issuer: 'https://localhost:44305/', - clientId: 'MyProjectName_App', - scope: 'offline_access MyProjectName', - redirectUri: baseUrl, - // responseType: 'code', + //Other props.. impersonation: { userImpersonation: true, tenantImpersonation: true,