mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(Azure OpenAI Chat Model Node): Simplify Azure Entra ID Authentication and Auto-Refresh token (#15335)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user