labeled introspection endpoint
parent
17374a57e0
commit
e4f9fa2bbf
|
@ -26,6 +26,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import org.mitre.oauth2.model.OAuth2AccessTokenEntity;
|
import org.mitre.oauth2.model.OAuth2AccessTokenEntity;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.validation.BeanPropertyBindingResult;
|
import org.springframework.validation.BeanPropertyBindingResult;
|
||||||
import org.springframework.web.servlet.view.AbstractView;
|
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.JsonSerializationContext;
|
||||||
import com.google.gson.JsonSerializer;
|
import com.google.gson.JsonSerializer;
|
||||||
|
|
||||||
|
@Component("tokenIntrospection")
|
||||||
public class TokenIntrospectionView extends AbstractView {
|
public class TokenIntrospectionView extends AbstractView {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(TokenIntrospectionView.class);
|
private static Logger logger = LoggerFactory.getLogger(TokenIntrospectionView.class);
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class IntrospectionEndpoint {
|
||||||
this.tokenServices = tokenServices;
|
this.tokenServices = tokenServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/oauth/verify")
|
@RequestMapping("/introspect")
|
||||||
public ModelAndView verify(Principal p, ModelAndView modelAndView) {
|
public ModelAndView verify(Principal p, ModelAndView modelAndView) {
|
||||||
|
|
||||||
// assume the token's not valid until proven otherwise
|
// assume the token's not valid until proven otherwise
|
||||||
|
|
Loading…
Reference in New Issue