Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get ERR_EMPTY_RESPONSE error when i want get authorization_token after submiting #2603

Closed
armindev22 opened this issue Sep 12, 2018 · 2 comments

Comments

@armindev22
Copy link

armindev22 commented Sep 12, 2018

What version of ejabberd are you using?

18.06

What operating system (version) are you using?

ubuntu 18.04

How did you install ejabberd (source, package, distribution)?

apt-get install ejabberd

What did not work as expected? Are there error messages in the log? What
was the unexpected behavior? What was the expected result?

hello , when i want to get token from https://my-ip:5280/oauth/authorization_token i get ERR_EMPTY_RESPONSE after submiting account data

capture

@badlop
Copy link
Member

badlop commented Sep 13, 2018

Using ejabberd 18.06, I configure like this:

acl:
  admin:
    user:
      - "user1@localhost"

access_rules:
  configure:
    - allow: admin

commands_admin_access: configure
commands:
  - add_commands:
    - user
    - get_roster
    - sasl_auth
oauth_expire: 3600
oauth_access: all

Then I register the account user1@localhost and visit the page
http://localhost:5280/oauth/authorization_token
filling the fields with user1@localhost and its password.

And the page goes to
http://localhost:5280/oauth/authorization_token?access_token=MBWAlXZy3rzBLII8L74iCm0UlxlElyB5&token_type=bearer&expires_in=31536000&scope=&state=

@badlop badlop closed this as completed Sep 26, 2018
@lock
Copy link

lock bot commented Sep 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants