ejabberd:ejabberd_auth_http:带内注册不能使用 JWT 作为密码

问题描述 投票:0回答:0

我正在使用 ejabberd 在我的平台上开发一个功能,所以已经有登录、注册页面和 JWT。那么现在我如何在第一次连接到 xmpp 服务器时或在使用 curl 请求注册时传递令牌

curl --location 'http://localhost:5443/api/register' \
--header 'Content-Type: application/json' \
--data '{
    "user": "user1",
    "password": "password",
    "host": "localhost"
}'

我不需要密码字段。我有智威汤逊代替。

我尝试在密码字段中传递 jwt 令牌,但出现以下错误

{
    "status": "error",
    "code": 10001,
    "message": "Can't register user user7@localhost at node ejabberd@localhost: The password contains unacceptable characters"
}
authentication xmpp ejabberd authhttp
© www.soinside.com 2019 - 2024. All rights reserved.