Commit e05b46e7162064bf1bdceaf1236463d0912b6083
- Diff rendering mode:
- inline
- side by side
src/main/java/com/springsource/greenhouse/signin/FacebookSigninController.java
(1 / 2)
|   | |||
| 39 | 39 | * @author Craig Walls | |
| 40 | 40 | */ | |
| 41 | 41 | @Controller | |
| 42 | @RequestMapping("/signin/facebook") | ||
| 43 | 42 | public class FacebookSigninController { | |
| 44 | 43 | ||
| 45 | 44 | private final ServiceProvider<FacebookOperations> facebookProvider; | |
| … | … | ||
| 57 | 57 | * For sign-in to succeed, the submitted access token must match a Facebook accessToken on file in our system. | |
| 58 | 58 | * Notifies the user if the access token is invalid. | |
| 59 | 59 | */ | |
| 60 | @RequestMapping(value="/", method=RequestMethod.POST) | ||
| 60 | @RequestMapping(value="/signin/facebook", method=RequestMethod.POST) | ||
| 61 | 61 | public String signin(@FacebookAccessToken String accessToken) { | |
| 62 | 62 | try { | |
| 63 | 63 | Account account = facebookProvider.findAccountByConnection(accessToken); |
Comments
Add your comment
Please log in to comment



Add a new comment:
Login or create an account to post a comment