{"action":"closed","issue":{"url":"https://api.github.com/repos/zalando-stups/stups-spring-oauth2-support/issues/34","repository_url":"https://api.github.com/repos/zalando-stups/stups-spring-oauth2-support","labels_url":"https://api.github.com/repos/zalando-stups/stups-spring-oauth2-support/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/zalando-stups/stups-spring-oauth2-support/issues/34/comments","events_url":"https://api.github.com/repos/zalando-stups/stups-spring-oauth2-support/issues/34/events","html_url":"https://github.com/zalando-stups/stups-spring-oauth2-support/issues/34","id":148670714,"number":34,"title":"TokenInfoResponseErrorHandler does not handle 401 nor 403","user":{"login":"vroldanbet","id":6774726,"avatar_url":"https://avatars.githubusercontent.com/u/6774726?v=3","gravatar_id":"","url":"https://api.github.com/users/vroldanbet","html_url":"https://github.com/vroldanbet","followers_url":"https://api.github.com/users/vroldanbet/followers","following_url":"https://api.github.com/users/vroldanbet/following{/other_user}","gists_url":"https://api.github.com/users/vroldanbet/gists{/gist_id}","starred_url":"https://api.github.com/users/vroldanbet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vroldanbet/subscriptions","organizations_url":"https://api.github.com/users/vroldanbet/orgs","repos_url":"https://api.github.com/users/vroldanbet/repos","events_url":"https://api.github.com/users/vroldanbet/events{/privacy}","received_events_url":"https://api.github.com/users/vroldanbet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-15T14:08:17Z","updated_at":"2016-04-22T11:12:22Z","closed_at":"2016-04-22T11:12:22Z","body":"The current implementation of org.zalando.stups.oauth2.spring.server.TokenInfoResponseErrorHandler does only react to tokeninfo responses with status code 400.\r\n\r\nNothing is indicated in the specification about the token info interface details, but both planb-tokeninfo and openam seems to refer to this part of the spec:\r\n\r\nhttps://tools.ietf.org/html/rfc6750#section-3.1\r\n\r\nEven though is not clear, no application using TokenInfoResourceServerTokenServices should be returning 500 upon a 401 or 403 of tokeninfo. It's better to just relay the response from tokeninfo, even if it not indicated in the OAuth2 spec.\r\n"}}