Skip to content

JWT 凭证#

¥JWT credentials

你可以使用以下凭据验证以下节点:

¥You can use these credentials to authenticate the following nodes:

支持的身份验证方法#

¥Supported authentication methods

  • 密码短语:使用 HMAC 算法通过密钥签名

¥Passphrase: Signed with a secret with HMAC algorithm

  • 私钥(PEM 密钥):用于采用 RSA 或 ECDSA 算法的 私钥 JWT

¥Private key (PEM key): For use with Private Key JWT with RSA or ECDSA algorithm

相关资源#

¥Related resources

请参阅 JSON Web Token 规范,了解更多详情。

¥Refer to the JSON Web Token spec for more details.

有关更详细的介绍,请参阅 JWT 网站:JSON Web Token 简介。有关在两种类型之间进行选择以及所涉及的算法的更多信息,请参阅 JSON Web Token (JWT) 签名算法概述

¥For a more verbose introduction, refer to the JWT website Introduction to JSON Web Tokens. Refer to JSON Web Token (JWT) Signing Algorithms Overview 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.

使用私钥(PEM 密钥)#

¥Using private key (PEM key)

配置此凭据:

¥To configure this credential:

  1. 选择“PEM 密钥”作为密钥类型。

¥Select the Key Type of PEM Key. 2. 私钥:通过生成密钥对获得。有关示例,请参阅 生成 RSA 密钥对

¥A Private Key: Obtained from generating a Key Pair. Refer to Generate RSA Key Pair for an example. 3. 公钥:通过生成密钥对获得。有关示例,请参阅 生成 RSA 密钥对

¥A Public Key: Obtained from generating a Key Pair. Refer to Generate RSA Key Pair 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

此 n8n 凭据支持以下算法:

¥This n8n credential supports the following algorithms:

  • HS256

  • HS384

  • HS512

  • RS256

  • RS384

  • RS512

  • ES256

  • ES384

  • ES512

  • PS256

  • PS384

  • PS512

  • none