@RequestMapping(method = RequestMethod.GET, value = "github") public OAuth2AccessToken getGithubAuthorization() { return authService.authorizeGithubUser(null, null); }
@RequestMapping(method = RequestMethod.POST, value = "github") public OAuth2AccessToken authorizeWithGithub(@RequestBody Map<String, String> requestBody) { return authService.authorizeGithubUser(requestBody.get("code"), requestBody.get("redirectUri")); }