Add audience parameter to OAuth 2

Closes https://feedback.yaak.app/p/how-do-i-send-an-audience-using-oauth2
This commit is contained in:
Gregory Schier
2025-05-16 07:17:22 -07:00
parent 8c0f889dd2
commit 9615d3e29b
6 changed files with 26 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ export async function getPassword(
username,
password,
credentialsInBody,
audience,
scope,
}: {
accessTokenUrl: string;
@@ -21,6 +22,7 @@ export async function getPassword(
username: string;
password: string;
scope: string | null;
audience: string | null;
credentialsInBody: boolean;
},
): Promise<AccessToken> {
@@ -40,6 +42,7 @@ export async function getPassword(
clientId,
clientSecret,
scope,
audience,
grantType: 'password',
credentialsInBody,
params: [