Class SocialRESTAdapter
- java.lang.Object
-
- cronapp.framework.authentication.social.SocialRESTAdapter
-
@RestController public class SocialRESTAdapter extends Object
-
-
Constructor Summary
Constructors Constructor Description SocialRESTAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<AuthenticationResponse>oauth2Callback(String providerId, String client_id, String client_secret, String access_token)StringpostFacebook()StringpostGithub()StringpostGoogle()
-
-
-
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
-
-