C# Class OAuth2.Example.Controllers.HomeController

The only controller in this example app.
Inheritance: Controller
ファイルを表示 Open project: carepass/code-samples

Private Properties

Property Type Description
GetClient IClient

Public Methods

Method Description
Auth ( ) : System.Web.Mvc.ActionResult

Renders information received from authentication service.

HomeController ( ) : System.Linq
HomeController ( AuthorizationRoot authorizationRoot ) : System.Linq

Initializes a new instance of the HomeController class.

Index ( ) : System.Web.Mvc.ActionResult

Renders home page with login link.

Login ( string providerName ) : System.Web.Mvc.RedirectResult

Redirect to login url of selected provider.

Private Methods

Method Description
GetClient ( ) : IClient

Method Details

Auth() public method

Renders information received from authentication service.
public Auth ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

HomeController() public method

public HomeController ( ) : System.Linq
return System.Linq

HomeController() public method

Initializes a new instance of the HomeController class.
public HomeController ( AuthorizationRoot authorizationRoot ) : System.Linq
authorizationRoot AuthorizationRoot The authorization manager.
return System.Linq

Index() public method

Renders home page with login link.
public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Login() public method

Redirect to login url of selected provider.
public Login ( string providerName ) : System.Web.Mvc.RedirectResult
providerName string
return System.Web.Mvc.RedirectResult