labeled introspection endpoint

pull/263/head
Justin Richer 2012-12-06 16:19:25 -05:00
parent 17374a57e0
commit e4f9fa2bbf
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import javax.servlet.http.HttpServletResponse;
import org.mitre.oauth2.model.OAuth2AccessTokenEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.validation.BeanPropertyBindingResult;
import org.springframework.web.servlet.view.AbstractView;
@ -40,6 +41,7 @@ import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
@Component("tokenIntrospection")
public class TokenIntrospectionView extends AbstractView {
private static Logger logger = LoggerFactory.getLogger(TokenIntrospectionView.class);

View File

@ -40,7 +40,7 @@ public class IntrospectionEndpoint {
this.tokenServices = tokenServices;
}
@RequestMapping("/oauth/verify")
@RequestMapping("/introspect")
public ModelAndView verify(Principal p, ModelAndView modelAndView) {
// assume the token's not valid until proven otherwise