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

Auth.login method always returns error using /json-rpc/ endpoint #1847

Closed
StoneShasta opened this issue Aug 13, 2020 · 1 comment
Closed

Comments

@StoneShasta
Copy link

StoneShasta commented Aug 13, 2020

Description of problem

The Auth.login method returns an error saying the username or password are incorrect when using the JSON RPC endpoint to interact with a server. I triple checked my credentials and had others with access to my server instance try and all got the same error.

Steps to Reproduce

  1. Send a request to the /json-rpc/ endpont using the Auth.login method
curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"id":"jsonrpc","jsonrpc":"2.0","method":"Auth.login","params":[{"username":"USERNAME"},{"password":"PASSSWORD"}]}' \
  https://kiwi.server/json-rpc/

Actual results

Error is returned saying the username or password are incorrect

Expected results

Response returns with a sessionid

@atodorov
Copy link
Member

The login method accepts a list of 2 positional arguments, not dictionaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants