{"action":"created","issue":{"url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/128","labels_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/128/comments","events_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/128/events","html_url":"https://github.com/UniversalViewer/universalviewer/issues/128","id":97748163,"number":128,"title":"Make use of more descriptive token errors","user":{"login":"tomcrane","id":1443575,"avatar_url":"https://avatars.githubusercontent.com/u/1443575?v=3","gravatar_id":"","url":"https://api.github.com/users/tomcrane","html_url":"https://github.com/tomcrane","followers_url":"https://api.github.com/users/tomcrane/followers","following_url":"https://api.github.com/users/tomcrane/following{/other_user}","gists_url":"https://api.github.com/users/tomcrane/gists{/gist_id}","starred_url":"https://api.github.com/users/tomcrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomcrane/subscriptions","organizations_url":"https://api.github.com/users/tomcrane/orgs","repos_url":"https://api.github.com/users/tomcrane/repos","events_url":"https://api.github.com/users/tomcrane/events{/privacy}","received_events_url":"https://api.github.com/users/tomcrane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UniversalViewer/universalviewer/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/UniversalViewer/universalviewer/labels/wellcome","name":"wellcome","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T16:29:34Z","updated_at":"2015-09-19T15:41:22Z","closed_at":null,"body":"At IIIF editors meeting\r\n\r\nIt's easier for clients to work out what is going on if we return more useful error codes from the token service (at the moment it's all \"invalidRequest\").\r\n\r\nSo see: http://auth.iiif.io/api/auth/0.9/#error-conditions (in progress, might not be pushed)\r\n\r\n@tomcrane needs to implement DLCS-111\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/comments/141681428","html_url":"https://github.com/UniversalViewer/universalviewer/issues/128#issuecomment-141681428","issue_url":"https://api.github.com/repos/UniversalViewer/universalviewer/issues/128","id":141681428,"user":{"login":"tomcrane","id":1443575,"avatar_url":"https://avatars.githubusercontent.com/u/1443575?v=3","gravatar_id":"","url":"https://api.github.com/users/tomcrane","html_url":"https://github.com/tomcrane","followers_url":"https://api.github.com/users/tomcrane/followers","following_url":"https://api.github.com/users/tomcrane/following{/other_user}","gists_url":"https://api.github.com/users/tomcrane/gists{/gist_id}","starred_url":"https://api.github.com/users/tomcrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomcrane/subscriptions","organizations_url":"https://api.github.com/users/tomcrane/orgs","repos_url":"https://api.github.com/users/tomcrane/repos","events_url":"https://api.github.com/users/tomcrane/events{/privacy}","received_events_url":"https://api.github.com/users/tomcrane/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T15:41:22Z","updated_at":"2015-09-19T15:41:22Z","body":"If the server is unable to extract a user from the request, I'll now return missingCredentials.\r\n\r\nWe don't have enough other flows yet to return any of the other cases.\r\n\r\nSo - expect to see \"invalidRequest\" or \"missingCredentials\" on error.\r\n"}}