Mattermost 凭证(Mattermost credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
支持的身份验证方法(Supported authentication methods)#
- API 访问令牌
相关资源(Related resources)#
有关该服务的更多信息,请参阅 Mattermost 的 API 文档。
🌐 Refer to Mattermost's API documentation for more information about the service.
使用 API 访问令牌(Using API access token)#
要配置此凭据,你需要一个 Mattermost 账户以及:
🌐 To configure this credential, you'll need a Mattermost account and:
- 个人 访问令牌
- 你的 Mattermost 基础网址。
设置:
🌐 To set it up:
-
在 Mattermost 中,进入 个人资料 > 安全 > 个人访问令牌。
没有个人访问令牌选项
如果你看不到“个人访问令牌”选项,请参阅下面启用个人访问令牌中的故障排除步骤。
-
选择 创建令牌。
- 输入一个令牌描述,例如
n8n integration。 - 选择 保存。
- 复制 Token ID 并将其作为 访问令牌 输入到你的 n8n 凭证中。
- 将你的 Mattermost URL 输入为 基础 URL。
- 默认情况下,n8n 仅在 SSL 证书验证成功时才会连接。如果希望在 SSL 证书验证失败时也能连接,请开启 忽略 SSL 问题。
有关更多信息,请参阅 Mattermost 的 个人访问令牌文档 。
🌐 Refer to the Mattermost Personal access tokens documentation for more information.
启用个人访问令牌(Enable personal access tokens)#
看不到 个人访问令牌 选项可能有两个原因:
🌐 Not seeing the Personal Access Tokens option has two possible causes:
- Mattermost 未启用个人访问令牌集成。
- 你尝试以非管理员用户的身份生成个人访问令牌,而该用户没有生成个人访问令牌的权限。
要确定根本原因并解决问题:
🌐 To identify the root cause and resolve it:
- 以管理员身份登录 Mattermost。
- 转到 系统控制台 > 集成 > 集成管理。
- 确认 启用个人访问令牌 已设置为 true。如果没有,请更改。
- 转到 系统控制台 > 用户管理 > 用户。
- 搜索你要允许生成个人访问令牌的用户账户。
- 点击该用户的 操作 下拉菜单,然后选择 管理角色。
- 勾选“允许此账户生成个人访问令牌”,然后点击“保存”。
有关更多信息,请参阅 Mattermost 的 个人访问令牌文档 。
🌐 Refer to the Mattermost Personal access tokens documentation for more information.