{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/1886","repository_url":"https://api.github.com/repos/Mashape/kong","labels_url":"https://api.github.com/repos/Mashape/kong/issues/1886/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/1886/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/1886/events","html_url":"https://github.com/Mashape/kong/issues/1886","id":194709229,"number":1886,"title":"JWT plugin does not create credentials for consumer identified with UUID","user":{"login":"codeocelot","id":4086894,"avatar_url":"https://avatars.githubusercontent.com/u/4086894?v=3","gravatar_id":"","url":"https://api.github.com/users/codeocelot","html_url":"https://github.com/codeocelot","followers_url":"https://api.github.com/users/codeocelot/followers","following_url":"https://api.github.com/users/codeocelot/following{/other_user}","gists_url":"https://api.github.com/users/codeocelot/gists{/gist_id}","starred_url":"https://api.github.com/users/codeocelot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeocelot/subscriptions","organizations_url":"https://api.github.com/users/codeocelot/orgs","repos_url":"https://api.github.com/users/codeocelot/repos","events_url":"https://api.github.com/users/codeocelot/events{/privacy}","received_events_url":"https://api.github.com/users/codeocelot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T22:09:57Z","updated_at":"2017-02-14T20:18:55Z","closed_at":"2017-02-14T20:18:55Z","body":"### Summary\r\n\r\nSUMMARY_GOES_HERE\r\nJWT plugin does not create credentials when passed a uuid that identifies a user (either username or custom_id).  \r\n\r\n### Steps To Reproduce\r\n\r\n1. Register a new user:\r\n`curl -X POST kong:8001/consumers --data \"username=ad005c48-508a-41d0-b303-8921e97609c3\"`\r\n2. Create credentials\r\n`curl -X POST kong:8001/consumers/ad005c48-508a-41d0-b303-8921e97609c3/jwt`\r\n3. Expected Result: 200, Actual Result: 404 \r\n\r\n### Additional Details & Logs\r\n\r\n- Kong version: 0.9.6\r\n- Kong debug-level startup logs (`$ kong start --vv`)\r\n2016/12/09 14:08:37 [verbose] Kong: 0.9.6\r\n2016/12/09 14:08:37 [debug] ngx_lua: 10006\r\n2016/12/09 14:08:37 [debug] nginx: 1011002\r\n2016/12/09 14:08:37 [debug] Lua: LuaJIT 2.1.0-beta2\r\n2016/12/09 14:08:37 [debug] PRNG seed: 842135533129\r\n2016/12/09 14:08:37 [verbose] no config file found at /etc/kong.conf\r\n2016/12/09 14:08:37 [verbose] no config file found at /etc/kong/kong.conf\r\n2016/12/09 14:08:37 [verbose] no config file, skipping loading\r\n2016/12/09 14:08:37 [debug] admin_listen = \"0.0.0.0:8001\"\r\n2016/12/09 14:08:37 [debug] anonymous_reports = true\r\n2016/12/09 14:08:37 [debug] cassandra_consistency = \"ONE\"\r\n2016/12/09 14:08:37 [debug] cassandra_contact_points = {\"127.0.0.1\"}\r\n2016/12/09 14:08:37 [debug] cassandra_data_centers = {\"dc1:2\",\"dc2:3\"}\r\n2016/12/09 14:08:37 [debug] cassandra_keyspace = \"kong\"\r\n2016/12/09 14:08:37 [debug] cassandra_port = 9042\r\n2016/12/09 14:08:37 [debug] cassandra_repl_factor = 1\r\n2016/12/09 14:08:37 [debug] cassandra_repl_strategy = \"SimpleStrategy\"\r\n2016/12/09 14:08:37 [debug] cassandra_ssl = false\r\n2016/12/09 14:08:37 [debug] cassandra_ssl_verify = false\r\n2016/12/09 14:08:37 [debug] cassandra_timeout = 5000\r\n2016/12/09 14:08:37 [debug] cassandra_username = \"kong\"\r\n2016/12/09 14:08:37 [debug] cluster_listen = \"0.0.0.0:7946\"\r\n2016/12/09 14:08:37 [debug] cluster_listen_rpc = \"127.0.0.1:7373\"\r\n2016/12/09 14:08:37 [debug] cluster_profile = \"wan\"\r\n2016/12/09 14:08:37 [debug] cluster_ttl_on_failure = 3600\r\n2016/12/09 14:08:37 [debug] custom_plugins = {}\r\n2016/12/09 14:08:37 [debug] database = \"postgres\"\r\n2016/12/09 14:08:37 [debug] dnsmasq = true\r\n2016/12/09 14:08:37 [debug] dnsmasq_port = 8053\r\n2016/12/09 14:08:37 [debug] log_level = \"notice\"\r\n2016/12/09 14:08:37 [debug] lua_code_cache = \"on\"\r\n2016/12/09 14:08:37 [debug] lua_package_cpath = \"\"\r\n2016/12/09 14:08:37 [debug] lua_package_path = \"?/init.lua;./kong/?.lua\"\r\n2016/12/09 14:08:37 [debug] lua_ssl_verify_depth = 1\r\n2016/12/09 14:08:37 [debug] mem_cache_size = \"128m\"\r\n2016/12/09 14:08:37 [debug] nginx_daemon = \"on\"\r\n2016/12/09 14:08:37 [debug] nginx_optimizations = true\r\n2016/12/09 14:08:37 [debug] nginx_worker_processes = \"auto\"\r\n2016/12/09 14:08:37 [debug] pg_database = \"kong\"\r\n2016/12/09 14:08:37 [debug] pg_host = \"127.0.0.1\"\r\n2016/12/09 14:08:37 [debug] pg_port = 5432\r\n2016/12/09 14:08:37 [debug] pg_ssl = false\r\n2016/12/09 14:08:37 [debug] pg_ssl_verify = false\r\n2016/12/09 14:08:37 [debug] pg_user = \"kong\"\r\n2016/12/09 14:08:37 [debug] prefix = \"/usr/local/kong/\"\r\n2016/12/09 14:08:37 [debug] proxy_listen = \"0.0.0.0:8000\"\r\n2016/12/09 14:08:37 [debug] proxy_listen_ssl = \"0.0.0.0:8443\"\r\n2016/12/09 14:08:37 [debug] serf_path = \"serf\"\r\n2016/12/09 14:08:37 [debug] ssl = true\r\n2016/12/09 14:08:37 [verbose] prefix in use: /usr/local/kong\r\n2016/12/09 14:08:37 [verbose] preparing nginx prefix directory at /usr/local/kong\r\n2016/12/09 14:08:37 [verbose] saving serf identifier to /usr/local/kong/serf/serf.id\r\n2016/12/09 14:08:37 [debug] searching for OpenResty 'resty' executable\r\n2016/12/09 14:08:37 [debug] /usr/local/openresty/bin/resty -V: 'sh: /usr/local/openresty/bin/resty: No such file or directory'\r\n2016/12/09 14:08:37 [debug] OpenResty 'resty' executable not found at /usr/local/openresty/bin/resty\r\n2016/12/09 14:08:37 [debug] resty -V: 'nginx version: openresty/1.11.2.1'\r\n2016/12/09 14:08:37 [debug] found OpenResty 'resty' executable at resty\r\n2016/12/09 14:08:37 [verbose] saving serf shell script handler to /usr/local/kong/serf/serf_event.sh\r\n2016/12/09 14:08:37 [verbose] SSL enabled, no custom certificate set: using default certificate\r\n2016/12/09 14:08:37 [verbose] default SSL certificate found at /usr/local/kong/ssl/kong-default.crt\r\n2016/12/09 14:08:37 [verbose] running datastore migrations\r\n2016/12/09 14:08:37 [verbose] migrations up to date\r\n2016/12/09 14:08:37 [verbose] dnsmasq not running, deleting /usr/local/kong/pids/dnsmasq.pid\r\n2016/12/09 14:08:37 [debug] searching for 'dnsmasq' executable\r\n2016/12/09 14:08:37 [debug] /usr/local/sbin/dnsmasq -v: 'Dnsmasq version 2.76  Copyright (c) 2000-2016 Simon Kelley'\r\n2016/12/09 14:08:37 [debug] found 'dnsmasq' executable at /usr/local/sbin/dnsmasq\r\n2016/12/09 14:08:37 [debug] starting dnsmasq: /usr/local/sbin/dnsmasq -p 8053 --pid-file=/usr/local/kong/pids/dnsmasq.pid -N -o --listen-address=127.0.0.1\r\n2016/12/09 14:08:37 [verbose] serf agent not running, deleting /usr/local/kong/pids/serf.pid\r\n2016/12/09 14:08:37 [debug] checking 'serf' executable from 'serf_path' config setting\r\n2016/12/09 14:08:37 [debug] serf version: 'Serf v0.8.0'\r\n2016/12/09 14:08:37 [debug] starting serf agent: nohup serf agent -profile 'wan' -rpc-addr '127.0.0.1:7373' -event-handler 'member-join,member-leave,member-failed,member-update,member-reap,user:kong=/usr/local/kong/serf/serf_event.sh' -bind '0.0.0.0:7946' -node 'Joeys-MacBook-Pro.local_0.0.0.0:7946_7899b7ed127b434cb9a95a32c6e08f37' -log-level 'err' > /usr/local/kong/logs/serf.log 2>&1 & echo $! > /usr/local/kong/pids/serf.pid\r\n2016/12/09 14:08:37 [verbose] waiting for serf agent to be running\r\n2016/12/09 14:08:38 [debug] sending signal to pid at: /usr/local/kong/pids/serf.pid\r\n2016/12/09 14:08:38 [debug] kill -0 `cat /usr/local/kong/pids/serf.pid` >/dev/null 2>&1\r\n2016/12/09 14:08:38 [verbose] serf agent started\r\n2016/12/09 14:08:38 [verbose] auto-joining serf cluster\r\n2016/12/09 14:08:38 [verbose] no other nodes found in the cluster\r\n2016/12/09 14:08:38 [verbose] registering serf node in datastore\r\n2016/12/09 14:08:38 [verbose] cluster joined and node registered in datastore\r\n2016/12/09 14:08:38 [debug] searching for OpenResty 'nginx' executable\r\n2016/12/09 14:08:38 [debug] /usr/local/openresty/nginx/sbin/nginx -v: 'sh: /usr/local/openresty/nginx/sbin/nginx: No such file or directory'\r\n2016/12/09 14:08:38 [debug] OpenResty 'nginx' executable not found at /usr/local/openresty/nginx/sbin/nginx\r\n2016/12/09 14:08:38 [debug] nginx -v: 'nginx version: openresty/1.11.2.1'\r\n2016/12/09 14:08:38 [debug] found OpenResty 'nginx' executable at nginx\r\n2016/12/09 14:08:38 [debug] starting nginx: nginx -p /usr/local/kong -c nginx.conf\r\n2016/12/09 14:08:38 [debug] nginx started\r\n2016/12/09 14:08:38 [info] Kong started\r\n\r\n- Kong error logs (`<KONG_PREFIX>/logs/error.log`)\r\n\r\n- Kong configuration (registered APIs/Plugins & configuration file)\r\nRegistered apis:  mockbin (see 5 min start guide).  \r\n- Operating System\r\nMacOS Sierra \r\n"},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/279823487","html_url":"https://github.com/Mashape/kong/issues/1886#issuecomment-279823487","issue_url":"https://api.github.com/repos/Mashape/kong/issues/1886","id":279823487,"user":{"login":"Tieske","id":1077043,"avatar_url":"https://avatars.githubusercontent.com/u/1077043?v=3","gravatar_id":"","url":"https://api.github.com/users/Tieske","html_url":"https://github.com/Tieske","followers_url":"https://api.github.com/users/Tieske/followers","following_url":"https://api.github.com/users/Tieske/following{/other_user}","gists_url":"https://api.github.com/users/Tieske/gists{/gist_id}","starred_url":"https://api.github.com/users/Tieske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tieske/subscriptions","organizations_url":"https://api.github.com/users/Tieske/orgs","repos_url":"https://api.github.com/users/Tieske/repos","events_url":"https://api.github.com/users/Tieske/events{/privacy}","received_events_url":"https://api.github.com/users/Tieske/received_events","type":"User","site_admin":false},"created_at":"2017-02-14T20:18:55Z","updated_at":"2017-02-14T20:18:55Z","body":"considering this answered. Thx @DonMartin76 :+1:"}}
{"actor":{"display_login":"Tieske"}}