Skip to content

Commit 5fdc97e

Browse files
committed
forward resolved tenantId in serviceToken
1 parent 714623c commit 5fdc97e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/connectivity/src/scp-cf/token-accessor.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function serviceToken(
3232
jwt?: string | JwtPayload;
3333
iasOptions?: Omit<
3434
IasOptions,
35-
'authenticationType' | 'assertion' | 'destinationUrl'
35+
'authenticationType' | 'assertion' | 'destinationUrl' | 'appTid'
3636
>;
3737
}
3838
): Promise<string> {
@@ -65,7 +65,8 @@ export async function serviceToken(
6565
serviceBinding.label === 'identity'
6666
? await getIasClientCredentialsToken(serviceBinding, {
6767
...(options?.iasOptions ?? {}),
68-
authenticationType: 'OAuth2ClientCredentials'
68+
authenticationType: 'OAuth2ClientCredentials',
69+
appTid: tenantForCaching
6970
})
7071
: await getClientCredentialsToken(serviceBinding, options?.jwt);
7172

0 commit comments

Comments
 (0)