{"action":"created","issue":{"url":"https://api.github.com/repos/dhlab-basel/Knora/issues/51","repository_url":"https://api.github.com/repos/dhlab-basel/Knora","labels_url":"https://api.github.com/repos/dhlab-basel/Knora/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/dhlab-basel/Knora/issues/51/comments","events_url":"https://api.github.com/repos/dhlab-basel/Knora/issues/51/events","html_url":"https://github.com/dhlab-basel/Knora/pull/51","id":136348567,"number":51,"title":"Wip/authentication","user":{"login":"subotic","id":400790,"avatar_url":"https://avatars.githubusercontent.com/u/400790?v=3","gravatar_id":"","url":"https://api.github.com/users/subotic","html_url":"https://github.com/subotic","followers_url":"https://api.github.com/users/subotic/followers","following_url":"https://api.github.com/users/subotic/following{/other_user}","gists_url":"https://api.github.com/users/subotic/gists{/gist_id}","starred_url":"https://api.github.com/users/subotic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subotic/subscriptions","organizations_url":"https://api.github.com/users/subotic/orgs","repos_url":"https://api.github.com/users/subotic/repos","events_url":"https://api.github.com/users/subotic/events{/privacy}","received_events_url":"https://api.github.com/users/subotic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dhlab-basel/Knora/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dhlab-basel/Knora/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"benjamingeer","id":558389,"avatar_url":"https://avatars.githubusercontent.com/u/558389?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingeer","html_url":"https://github.com/benjamingeer","followers_url":"https://api.github.com/users/benjamingeer/followers","following_url":"https://api.github.com/users/benjamingeer/following{/other_user}","gists_url":"https://api.github.com/users/benjamingeer/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingeer/subscriptions","organizations_url":"https://api.github.com/users/benjamingeer/orgs","repos_url":"https://api.github.com/users/benjamingeer/repos","events_url":"https://api.github.com/users/benjamingeer/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingeer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dhlab-basel/Knora/milestones/1","html_url":"https://github.com/dhlab-basel/Knora/milestones/On%20Deck","labels_url":"https://api.github.com/repos/dhlab-basel/Knora/milestones/1/labels","id":1549435,"number":1,"title":"On Deck","description":null,"creator":{"login":"benjamingeer","id":558389,"avatar_url":"https://avatars.githubusercontent.com/u/558389?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingeer","html_url":"https://github.com/benjamingeer","followers_url":"https://api.github.com/users/benjamingeer/followers","following_url":"https://api.github.com/users/benjamingeer/following{/other_user}","gists_url":"https://api.github.com/users/benjamingeer/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingeer/subscriptions","organizations_url":"https://api.github.com/users/benjamingeer/orgs","repos_url":"https://api.github.com/users/benjamingeer/repos","events_url":"https://api.github.com/users/benjamingeer/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingeer/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":20,"state":"open","created_at":"2016-01-28T16:58:42Z","updated_at":"2016-02-26T08:44:55Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-02-25T10:42:39Z","updated_at":"2016-02-26T09:47:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dhlab-basel/Knora/pulls/51","html_url":"https://github.com/dhlab-basel/Knora/pull/51","diff_url":"https://github.com/dhlab-basel/Knora/pull/51.diff","patch_url":"https://github.com/dhlab-basel/Knora/pull/51.patch"},"body":"Ben,\r\n\r\nAs far as I can tell the authentication issue is fixed. I also added tests that catch the error.\r\n\r\nThese tests should pass, but there seems to be another problem with the returned HTTP status code. The code that I expect is 401 (as with all BadCredentialExceptions) but 400 is returned. I cannot find where the problem is. Can you maybe take a look?\r\n\r\nThe test in question is ```AuthenticationV1E2ESpec.scala```."},"comment":{"url":"https://api.github.com/repos/dhlab-basel/Knora/issues/comments/189194239","html_url":"https://github.com/dhlab-basel/Knora/pull/51#issuecomment-189194239","issue_url":"https://api.github.com/repos/dhlab-basel/Knora/issues/51","id":189194239,"user":{"login":"benjamingeer","id":558389,"avatar_url":"https://avatars.githubusercontent.com/u/558389?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingeer","html_url":"https://github.com/benjamingeer","followers_url":"https://api.github.com/users/benjamingeer/followers","following_url":"https://api.github.com/users/benjamingeer/following{/other_user}","gists_url":"https://api.github.com/users/benjamingeer/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingeer/subscriptions","organizations_url":"https://api.github.com/users/benjamingeer/orgs","repos_url":"https://api.github.com/users/benjamingeer/repos","events_url":"https://api.github.com/users/benjamingeer/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingeer/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T09:47:02Z","updated_at":"2016-02-26T09:47:02Z","body":"I fixed the incorrect HTTP status code, it was a bug in `ApiStatusCodesV1.fromException`. `BadCredentialsException` is a subclass of `RequestRejectedException`, but `RequestRejectedException` was first in the match-case expression, so `BadCredentialsException` was never matched. Now you should get the 401 status code."}}