Class SocialRESTAdapter


  • @RestController
    public class SocialRESTAdapter
    extends Object
    • Constructor Detail

      • SocialRESTAdapter

        public SocialRESTAdapter()
    • Method Detail

      • postFacebook

        @RequestMapping(value="/signin/facebook/",
                        method=GET)
        @ResponseBody
        public String postFacebook()
      • postGithub

        @RequestMapping(value="/signin/github/",
                        method=GET)
        @ResponseBody
        public String postGithub()
      • postGoogle

        @RequestMapping(value="/signin/google/",
                        method=GET)
        @ResponseBody
        public String postGoogle()
      • oauth2Callback

        @RequestMapping(value="/auth/{providerId}/sso",
                        method=POST)
        public org.springframework.http.ResponseEntity<AuthenticationResponse> oauth2Callback​(@PathVariable
                                                                                              String providerId,
                                                                                              @RequestParam(name="client_id")
                                                                                              String client_id,
                                                                                              @RequestParam(name="client_secret")
                                                                                              String client_secret,
                                                                                              @RequestParam(name="access_token")
                                                                                              String access_token)
                                                                                       throws org.springframework.security.core.AuthenticationException
        Throws:
        org.springframework.security.core.AuthenticationException