mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
2.4 KiB
2.4 KiB
| title | description |
|---|---|
| JWT credentials | Documentation for the JWT credentials. Use these credentials to authenticate JWT in n8n, a workflow automation platform. |
JWT credentials
You can use these credentials to authenticate the following nodes:
Supported authentication methods
- Passphrase: Signed with a secret with HMAC algorithm
- Private key (PEM key): For use with Private Key JWT{:target=_blank .external-link} with RSA or ECDSA algorithm
Related resources
Refer to the JSON Web Token spec{:target=_blank .external-link} for more details.
For a more verbose introduction, refer to the JWT website Introduction to JSON Web Tokens{:target=_blank .external-link}. Refer to JSON Web Token (JWT) Signing Algorithms Overview{:target=_blank .external-link} for more information on selecting between the two types and the algorithms involved.
Using Passphrase
To configure this credential, select the Key Type of Passphrase:
- Key Type: Passphrase
- The Passphrase Secret
- Select the Algorithm used to sign the assertion. Refer to Available algorithms below for a list of supported algorithms.
Using private key (PEM key)
To configure this credential, select the Key Type of PEM Key:
- Key Type: PEM
- A Private Key: Obtained from generating a Key Pair. Refer to Generate RSA Key Pair{:target=_blank .external-link} for an example.
- A Public Key: Obtained from generating a Key Pair. Refer to Generate RSA Key Pair{:target=_blank .external-link} for an example.
- Select the Algorithm used to sign the assertion. Refer to Available algorithms below for a list of supported algorithms.
Available algorithms
This n8n credential supports the following algorithms:
HS256HS384HS512RS256RS384RS512ES256ES384ES512PS256PS384PS512none