Overview
This node, named "Microsoft Credential Proxy," is designed to handle dynamic Microsoft credentials received via webhook or other input data. It supports preparing (injecting) these credentials for use in subsequent nodes or converting them between different Microsoft credential formats.
Common scenarios include:
- Dynamically receiving Microsoft API credentials at runtime and injecting them into the workflow for seamless authentication.
- Converting credentials from one Microsoft service format to another, enabling interoperability between different Microsoft APIs within a workflow.
Practical examples:
- A webhook receives OAuth tokens for Microsoft Graph, which this node then injects as usable credentials for downstream Microsoft Graph API calls.
- Converting Microsoft Graph credentials into Microsoft Outlook OAuth2 credentials to access Outlook-specific endpoints without manual re-authentication.
Properties
| Name | Meaning |
|---|---|
| Type de Credential Microsoft | The type of Microsoft credential to use. Options: Microsoft Graph, Microsoft Outlook OAuth2, Microsoft Entra OAuth2 |
| Mode | Operation mode of the node. Options: - Injecter les Credentials: Prepares credentials to inject into the next node - Convertir les Credentials: Converts credentials between different Microsoft formats |
| Nom du Credential | The name to assign to the dynamic credential created or converted by this node |
Output
The node outputs an array with one item per input item, each containing JSON data structured as follows depending on the selected mode:
Inject mode: Adds a
__credentialproperty to the JSON containing the prepared dynamic credential object with fields:id: Unique identifier for the credential (generated if missing)name: The user-defined credential nametype: The selected Microsoft credential typedata: Stringified credential data_dynamicCredential: Flag indicating this is a dynamic credential
Convert mode: Adds or replaces the
_n8n_credentialsproperty in the JSON with the converted credential object, including similar fields as above but with the credential data converted to the target format.
No binary data output is produced by this node.
Dependencies
- Requires input data to contain dynamic Microsoft credentials under either
_n8n_credentialsordynamicCredentialsproperties. - No external API calls are made by this node itself; it operates purely on input data.
- Proper configuration of Microsoft API credentials elsewhere in the workflow is necessary for downstream nodes using the injected credentials.
Troubleshooting
Error: "Aucun credential dynamique trouvé dans les données d'entrée"
This error occurs if the input items do not contain any dynamic Microsoft credentials under the expected properties. Ensure that the previous node or webhook provides credentials correctly.Error: "Type de credentials non supporté: ..."
Happens when attempting to convert credentials of an unsupported type. Verify that the input credential type is one of the supported Microsoft types (Microsoft Graph, Microsoft Outlook OAuth2, Microsoft Entra OAuth2).When using the convert mode, ensure that the source and target credential types are compatible to avoid unexpected results.