Mattermost 凭证#
¥Mattermost credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
支持的身份验证方法#
¥Supported authentication methods
- API 访问令牌
¥API access token
相关资源#
¥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:
- 个人访问令牌
¥A personal Access Token
- 你的 Mattermost 基本 URL
¥Your Mattermost Base URL.
设置:
¥To set it up:
- 在 Mattermost 中,转到“个人资料”>“安全”>“个人访问令牌”。
¥In Mattermost, go to Profile > Security > Personal Access Tokens.
No Personal Access Tokens option
1 | |
- 选择“创建令牌”。
¥Select Create Token.
3. 请输入令牌描述,例如 n8n integration。
¥Enter a Token description, like n8n integration.
4. 选择“保存”。
¥Select Save. 5. 复制令牌 ID,并将其作为 n8n 凭据中的访问令牌输入。
¥Copy the Token ID and enter it as the Access Token in your n8n credential. 6. 请输入你的 Mattermost URL 作为基本 URL。
¥Enter your Mattermost URL as the Base URL. 7. 默认情况下,n8n 仅在 SSL 证书验证成功后才会连接。即使 SSL 证书验证失败,也要启用“忽略 SSL 问题”选项,以便连接。
¥By default, n8n connects only if SSL certificate validation succeeds. To connect even if SSL certificate validation fails, turn on Ignore SSL Issues.
请参阅 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 未启用个人访问令牌集成。
¥Mattermost doesn't have the personal access tokens integration enabled.
- 你尝试以非管理员用户的身份生成个人访问令牌,而该用户没有生成个人访问令牌的权限。
¥You're trying to generate a personal access token as a non-admin user who doesn't have permission to generate personal access tokens.
要确定根本原因并解决问题:
¥To identify the root cause and resolve it:
- 以管理员身份登录 Mattermost。
¥Log in to Mattermost as an admin. 2. 前往“系统控制台”>“集成”>“集成管理”。
¥Go to System Console > Integrations > Integration Management. 3. 确认“启用个人访问令牌”已设置为 true。如果不存在,则进行更改。
¥Confirm that Enable personal access tokens is set to true. If it's not, change. 4. 前往“系统控制台”>“用户管理”>“用户”。
¥Go to System Console > User Management > Users. 5. 搜索你要允许生成个人访问令牌的用户账户。
¥Search for the user account you want to allow to generate personal access tokens. 6. 选择用户的“操作”下拉菜单,然后选择“管理角色”。
¥Select the Actions dropdown for the user and select Manage roles. 7. 选中“允许此账户生成个人访问令牌”复选框并保存。
¥Check the box for Allow this account to generate personal access tokens and Save.
请参阅 Mattermost 个人访问令牌文档 文档,了解更多信息。
¥Refer to the Mattermost Personal access tokens documentation for more information.