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