C# Class BinaryStudio.ClientManager.WebUi.Controllers.AuthController

Inheritance: Controller
显示文件 Open project: titarenko/ClientManager

Public Methods

Method Description
AuthController ( IRepository repository, IAppContext appContext, OAuth2.Client.GoogleClient googleClient, OAuth2.Client.FacebookClient facebookClient ) : System
FacebookAuth ( string code, string error ) : System.Web.Mvc.ActionResult
GoogleAuth ( string code, string error ) : System.Web.Mvc.ActionResult

Renders information received from authentication service.

LogOff ( ) : System.Web.Mvc.ActionResult
LogOn ( ) : System.Web.Mvc.ActionResult

Renders page with login links

Method Details

AuthController() public method

public AuthController ( IRepository repository, IAppContext appContext, OAuth2.Client.GoogleClient googleClient, OAuth2.Client.FacebookClient facebookClient ) : System
repository IRepository
appContext IAppContext
googleClient OAuth2.Client.GoogleClient
facebookClient OAuth2.Client.FacebookClient
return System

FacebookAuth() public method

public FacebookAuth ( string code, string error ) : System.Web.Mvc.ActionResult
code string
error string
return System.Web.Mvc.ActionResult

GoogleAuth() public method

Renders information received from authentication service.
public GoogleAuth ( string code, string error ) : System.Web.Mvc.ActionResult
code string
error string
return System.Web.Mvc.ActionResult

LogOff() public method

public LogOff ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

LogOn() public method

Renders page with login links
public LogOn ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult