【发布时间】:2017-05-16 13:29:27
【问题描述】:
我已阅读所有我能找到的问题和答案,但 oauth 仍然无法正常工作。 这是配置 ejabberd.yml。
port: 5280
module: ejabberd_http
request_handlers:
"/websocket": ejabberd_http_ws
"/log": mod_log_http
# OAuth support:
"/oauth": ejabberd_oauth
# ReST API:
"/api": mod_http_api
## "/pub/archive": mod_http_fileserver
web_admin: true
http_bind: true
## register: true
captcha: false
commands_admin_access: configure
commands:
- add_commands: user
oauth_expire: 3600
oauth_access: all
当我打开这个 url 显示 html 表单时,我在其中写了 jid、密码和令牌 TTL(一小时)。点击接受 url 重定向后 http://192.168.217.128:5280/?error=access_denied&state=
我做错了什么?
我认为这个具体参数的地方是错误的。如果是这样,我不明白该放在哪里。
commands_admin_access: configure
commands:
- add_commands: user
oauth_expire: 3600
oauth_access: all
对不起我的英语。
【问题讨论】: