{"action":"opened","issue":{"url":"https://api.github.com/repos/waiting-for-dev/devise-jwt/issues/38","repository_url":"https://api.github.com/repos/waiting-for-dev/devise-jwt","labels_url":"https://api.github.com/repos/waiting-for-dev/devise-jwt/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/waiting-for-dev/devise-jwt/issues/38/comments","events_url":"https://api.github.com/repos/waiting-for-dev/devise-jwt/issues/38/events","html_url":"https://github.com/waiting-for-dev/devise-jwt/issues/38","id":255136043,"number":38,"title":"Testing Login with CURL","user":{"login":"LL0rd","id":7304547,"avatar_url":"https://avatars0.githubusercontent.com/u/7304547?v=4","gravatar_id":"","url":"https://api.github.com/users/LL0rd","html_url":"https://github.com/LL0rd","followers_url":"https://api.github.com/users/LL0rd/followers","following_url":"https://api.github.com/users/LL0rd/following{/other_user}","gists_url":"https://api.github.com/users/LL0rd/gists{/gist_id}","starred_url":"https://api.github.com/users/LL0rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LL0rd/subscriptions","organizations_url":"https://api.github.com/users/LL0rd/orgs","repos_url":"https://api.github.com/users/LL0rd/repos","events_url":"https://api.github.com/users/LL0rd/events{/privacy}","received_events_url":"https://api.github.com/users/LL0rd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-05T01:15:36Z","updated_at":"2017-09-05T01:15:36Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI installed the devise-jwt gem as mentioned in the readme document, but currently I have some problems testing the setup. For a test, I created a user. If I use the device web interface, the user can log in. But if I use the json Interface, this does not work for me. I tried the following CURL requests:\r\n\r\n`curl -i -X POST http://localhost:3000/users/sign_in.json -d \"email=guy@gmail.com&password=111111\"`\r\n\r\nBut it does not work for me. \r\n\r\n`HTTP/1.1 401 Unauthorized\r\nContent-Type: application/json; charset=utf-8\r\nCache-Control: no-cache\r\nX-Request-Id: 6649996c-33ab-439c-87d3-f7b529f08857\r\nX-Runtime: 0.024306\r\nVary: Origin\r\nTransfer-Encoding: chunked`\r\n\r\nand on the server\r\n\r\n`Started POST \"/users/sign_in.json\" for 127.0.0.1 at 2017-09-05 03:14:44 +0200\r\nProcessing by Devise::SessionsController#create as JSON\r\n  Parameters: {\"email\"=>\"guy@gmail.com\", \"password\"=>\"[FILTERED]\"}\r\nCompleted 401 Unauthorized in 5ms (ActiveRecord: 0.0ms)`\r\n\r\nCan some one help me?"}}
{"actor":{"display_login":"LL0rd"}}