From 1f7a65c439291a20f423b5313994cbc6ebbce9bc Mon Sep 17 00:00:00 2001 From: Jimmy Wang Date: Wed, 17 Jul 2024 12:05:58 +0800 Subject: [PATCH] fix: change the tenant id parameter name from tenantId to tenant_id # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # interactive rebase in progress; onto 1c1cca8 # Last command done (1 command done): # pick ec37845 fix: change the tenant id parameter name from tenantId to tenant_id # No commands remaining. # You are currently rebasing branch 'fix/tenantid-parameter-name' on '1c1cca8'. # # Changes to be committed: # modified: src/AuthenticationClient.ts # modified: src/AuthenticationClientInterface.ts # --- src/AuthenticationClient.ts | 2 +- src/AuthenticationClientInterface.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AuthenticationClient.ts b/src/AuthenticationClient.ts index bcc7841..0330dce 100644 --- a/src/AuthenticationClient.ts +++ b/src/AuthenticationClient.ts @@ -715,7 +715,7 @@ export class AuthenticationClient { nonce, }; if (options?.tenantId) { - params.tenantId = options?.tenantId; + params.tenant_id = options?.tenantId; } if (options?.forced) { params.prompt = "login"; diff --git a/src/AuthenticationClientInterface.ts b/src/AuthenticationClientInterface.ts index 32ca830..cd4984a 100644 --- a/src/AuthenticationClientInterface.ts +++ b/src/AuthenticationClientInterface.ts @@ -13,7 +13,7 @@ export interface AuthURLParams { nonce: string; scope: string; prompt?: string; - tenantId?: string; + tenant_id?: string; } export interface OIDCTokenResponse {