Méthode | Description | |
---|---|---|
FacebookController ( IUserProfileRepository userProfileRepository, IAccountMailer accountMailer ) : System | ||
LogOn ( string returnUrl ) : System.Web.Mvc.ActionResult |
Creates OAuth client and sends request with needed permissions to Facebook.
|
|
NewAccount ( string code, string state ) : System.Web.Mvc.ActionResult |
Attempts to populate registration ViewModel with data from Facebook and present to user for verification.
|
|
OAuth ( string code, string state ) : System.Web.Mvc.ActionResult |
Awaits a respnose from Facebook OAuth API. If Facebook login is successful, create Grassroots auth cookie.
|
|
Register ( string returnUrl ) : System.Web.Mvc.ActionResult |
Sends request to obtain user information with extended permissions to Facebook.
|
Méthode | Description | |
---|---|---|
Connect ( string returnUrl ) : System.Web.Mvc.ActionResult | ||
ConnectAccount ( string code, string state ) : System.Web.Mvc.ActionResult | ||
Disconnect ( ) : System.Web.Mvc.ActionResult | ||
DisconnectAccount ( |
||
RegisterUser ( |
public FacebookController ( IUserProfileRepository userProfileRepository, IAccountMailer accountMailer ) : System | ||
userProfileRepository | IUserProfileRepository | |
accountMailer | IAccountMailer | |
Résultat | System |
public LogOn ( string returnUrl ) : System.Web.Mvc.ActionResult | ||
returnUrl | string | Url to redirect to after login is complete |
Résultat | System.Web.Mvc.ActionResult |
public NewAccount ( string code, string state ) : System.Web.Mvc.ActionResult | ||
code | string | Code sent to Facebook to obtain access token |
state | string | Redirect Url |
Résultat | System.Web.Mvc.ActionResult |
public OAuth ( string code, string state ) : System.Web.Mvc.ActionResult | ||
code | string | Code sent to Facebook to obtain access token |
state | string | Redirect Url |
Résultat | System.Web.Mvc.ActionResult |
public Register ( string returnUrl ) : System.Web.Mvc.ActionResult | ||
returnUrl | string | Return Url |
Résultat | System.Web.Mvc.ActionResult |