Skip to content

Commit

Permalink
Restricted token endpoint to HTTP POST by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Campo authored and Dave Syer committed Jan 27, 2015
1 parent 4f06660 commit 04f7b1a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
Expand All @@ -66,7 +67,7 @@ public class TokenEndpoint extends AbstractEndpoint {

private OAuth2RequestValidator oAuth2RequestValidator = new DefaultOAuth2RequestValidator();

@RequestMapping(value = "/oauth/token")
@RequestMapping(value = "/oauth/token", method = RequestMethod.POST)
public ResponseEntity<OAuth2AccessToken> getAccessToken(Principal principal, @RequestParam
Map<String, String> parameters) {

Expand Down

0 comments on commit 04f7b1a

Please sign in to comment.