Files
n8n-docs/docs/integrations/builtin/credentials/jwt.md
Justin Ellingwood a7dc52d6e1 Change repo links to absolute file paths (#2829)
Co-authored-by: Nick Veitch <nick.veitch@n8n.io>
2025-02-11 17:40:26 +00:00

2.5 KiB

title, description, contentType, priority
title description contentType priority
JWT credentials Documentation for the JWT credentials. Use these credentials to authenticate JWT in n8n, a workflow automation platform.
integration
reference
medium

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

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:

  1. Select the Key Type of Passphrase.
  2. Enter the Passphrase Secret
  3. 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:

  1. Select the Key Type of PEM Key.
  2. A Private Key: Obtained from generating a Key Pair. Refer to Generate RSA Key Pair{:target=_blank .external-link} for an example.
  3. A Public Key: Obtained from generating a Key Pair. Refer to Generate RSA Key Pair{:target=_blank .external-link} for an example.
  4. 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:

  • HS256
  • HS384
  • HS512
  • RS256
  • RS384
  • RS512
  • ES256
  • ES384
  • ES512
  • PS256
  • PS384
  • PS512
  • none