org.brickred.socialauth.spring.controller
Class SocialAuthWebController

java.lang.Object
  extended by org.brickred.socialauth.spring.controller.SocialAuthWebController

@Controller
@RequestMapping(value="/socialauth")
public class SocialAuthWebController
extends java.lang.Object

Generic controller for managing socialauth-provider connection flow. This is called when the user hits a URL of the following form /socialauth{pattern}?id={providerId} where pattern depends on your configuration, for example .do and the providerId may be one of facebook,foursquare, google, hotmail,linkedin,myspace, openid, twitter, yahoo The connect method is called when the user hits the above URL and it redirects to the actual provider for login. Once the user provides credentials and the provider redirects back to your application, one of the callback methods is called


Constructor Summary
SocialAuthWebController(java.lang.String applicationUrl, java.lang.String successPageURL, java.lang.String accessDeniedPageURL)
          Constructs a SocialAuthWebController.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialAuthWebController

@Inject
public SocialAuthWebController(java.lang.String applicationUrl,
                                      java.lang.String successPageURL,
                                      java.lang.String accessDeniedPageURL)
Constructs a SocialAuthWebController.

Parameters:
applicationUrl - the base URL for this application (with context e.g http://opensource.brickred.com/socialauthdemo, used to construct the callback URL passed to the providers
successPageURL - the URL of success page or controller, where you want to access sign in user details like profile, contacts etc.
accessDeniedPageURL - the URL of page where you want to redirect when user denied the permission.


Copyright © 2011. All Rights Reserved.