fix(Azure OpenAI Chat Model Node): Simplify Azure Entra ID Authentication and Auto-Refresh token (#15335)

This commit is contained in:
oleg
2025-05-13 10:48:51 +02:00
committed by GitHub
parent 4302c5f474
commit e750d5366e
4 changed files with 54 additions and 27 deletions

View File

@@ -52,31 +52,14 @@ export class AzureEntraCognitiveServicesOAuth2Api implements ICredentialType {
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'string',
default: 'https://login.microsoftonline.com/$TENANT_ID/oauth2/authorize',
type: 'hidden',
default: '=https://login.microsoftonline.com/{{$self["tenantId"]}}/oauth2/authorize',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'string',
default: 'https://login.microsoftonline.com/$TENANT_ID/oauth2/token',
},
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
required: true,
default: '',
description: 'Client ID obtained from the Azure AD App Registration',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
required: true,
typeOptions: { password: true },
default: '',
description: 'Client Secret obtained from the Azure AD App Registration',
type: 'hidden',
default: '=https://login.microsoftonline.com/{{$self["tenantId"]}}/oauth2/token',
},
{
displayName: 'Additional Body Properties',