Skip to content

Commit 2a8a002

Browse files
authored
Merge pull request #31 from nnsay/fix/oidc-tenantid
fix: add the tenant id for oidc authorize url
2 parents 2060acf + b74613e commit 2a8a002

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/AuthenticationClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,9 @@ export class AuthenticationClient {
693693
state,
694694
nonce,
695695
};
696+
if(options?.tenantId) {
697+
params.tenantId = options?.tenantId
698+
}
696699
if (options?.forced) {
697700
params.prompt = "login";
698701
} else if (scope.split(" ").includes("offline_access")) {

src/AuthenticationClientInterface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface AuthURLParams {
1313
nonce: string;
1414
scope: string;
1515
prompt?: string;
16+
tenantId?: string;
1617
}
1718

1819
export interface OIDCTokenResponse {

0 commit comments

Comments
 (0)