C# Class OpenIdConnect.Client.Mvc.MvcOpenIdConnectClient

An MVC-specific OpenIdConnect Client. This reuses most of OpenIdConnectClient implementation.
Inheritance: OpenIdConnect.Client.Common.OpenIdConnectClient, IMvcOpenIdConnectClient
Afficher le fichier Open project: sapo/sapo-services-sdk

Méthodes publiques

Méthode Description
MvcOpenIdConnectClient ( OpenIdConnectAuthenticationSettings openIdSettings ) : System.Web.Mvc

Creates a new MvcOpenIdConnectClient, given its configuration

MvcOpenIdConnectClient ( OpenIdConnectAuthenticationSettings openIdSettings, System.Web.SessionState.HttpSessionState sessionStateStore ) : System.Web.Mvc

Creates a new MvcOpenIdConnectClient, given its configuration with the given HttpSessionState store.

MvcOpenIdConnectClient ( OpenIdConnectAuthenticationSettings openIdSettings, ISessionStateStore sessionStateStore ) : System.Web.Mvc

Creates a new MvcOpenIdConnectClient, given its configuration and a custom Session State Store

StartMvcSignIn ( string redirectUri ) : System.Web.Mvc.ActionResult

The same as StartSignIn, but returns an ActionResult.

StartMvcSignOut ( AccessTokenResponse accessTokenResponse, string redirectUri ) : System.Web.Mvc.ActionResult

The same as StartSignOut, but returns an ActionResult

Method Details

MvcOpenIdConnectClient() public méthode

Creates a new MvcOpenIdConnectClient, given its configuration
public MvcOpenIdConnectClient ( OpenIdConnectAuthenticationSettings openIdSettings ) : System.Web.Mvc
openIdSettings OpenIdConnect.Client.Common.OpenIdConnectAuthenticationSettings /// The OpenId client and server settings. /// This includes the client_id and client_secret, as well as the server endpoints. ///
Résultat System.Web.Mvc

MvcOpenIdConnectClient() public méthode

Creates a new MvcOpenIdConnectClient, given its configuration with the given HttpSessionState store.
public MvcOpenIdConnectClient ( OpenIdConnectAuthenticationSettings openIdSettings, System.Web.SessionState.HttpSessionState sessionStateStore ) : System.Web.Mvc
openIdSettings OpenIdConnect.Client.Common.OpenIdConnectAuthenticationSettings /// The OpenId client and server settings. /// This includes the client_id and client_secret, as well as the server endpoints. ///
sessionStateStore System.Web.SessionState.HttpSessionState The HttpSessionState to use internally in SystemWebSessionStateStore
Résultat System.Web.Mvc

MvcOpenIdConnectClient() public méthode

Creates a new MvcOpenIdConnectClient, given its configuration and a custom Session State Store
public MvcOpenIdConnectClient ( OpenIdConnectAuthenticationSettings openIdSettings, ISessionStateStore sessionStateStore ) : System.Web.Mvc
openIdSettings OpenIdConnect.Client.Common.OpenIdConnectAuthenticationSettings /// The OpenId client and server settings. /// This includes the client_id and client_secret, as well as the server endpoints. ///
sessionStateStore ISessionStateStore The session state store to use internally
Résultat System.Web.Mvc

StartMvcSignIn() public méthode

The same as StartSignIn, but returns an ActionResult.
public StartMvcSignIn ( string redirectUri ) : System.Web.Mvc.ActionResult
redirectUri string /// The callback URI where the application will call the CompleteSignIn, to exchange the "code" for an "access_token". ///
Résultat System.Web.Mvc.ActionResult

StartMvcSignOut() public méthode

The same as StartSignOut, but returns an ActionResult
public StartMvcSignOut ( AccessTokenResponse accessTokenResponse, string redirectUri ) : System.Web.Mvc.ActionResult
accessTokenResponse OpenIdConnect.Client.Common.Representations.AccessTokenResponse /// The token endpoint's access token response (when the user completed the sign in flow). /// We need the id_token that was returned in this response. ///
redirectUri string /// The callback URI where the application will cleanup the user's session ///
Résultat System.Web.Mvc.ActionResult