oauth_issue_token doesn't work in Ejabberd 17.04

Hi,

I just found that "oauth_issue_token" doesn't work in 17.04 (works OK in 17.01).

./ejabberdctl oauth_issue_token admin@some_host_name 31540000 "ejabberd:admin"
Error: access_denied

2017-04-12 12:42:18.682 [debug] <0.759.0>@ejabberd_access_permissions:handle_call:139 Command 'oauth_issue_token' execution allowed by rule 'console commands' (CallerInfo=#{caller_module => ejabberd_ctl})
2017-04-12 12:42:18.682 [debug] <0.912.0>@ejabberd_commands:do_execute_command:633 Executing command ejabberd_oauth:oauth_issue_token with Args=["admin@some_host_name",31540000,"ejabberd:admin"]

Fresh 17.04 install with default config file (changed log level + added oauth request handler).

By the way, why "ejabberdctl oauth_list_scopes" always returns an empty list?

Thank you,
Grigory

Forgot to specify

Forgot to specify "oauth_access" in ejabberd.yml file.
Problem solved. :)

Syndicate content