C# Class NGM.CasClient.Client.Extensions.RequestEvaluator

Inheritance: IRequestEvaluator
Mostra file Open project: NIKASoftwareDevs/Orchard

Public Methods

Method Description
GetRequestHasCasTicket ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the request has a CAS ticket in the URL

GetRequestHasGatewayParameter ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the request contains the GatewayParameterName defined in web.config or the default value 'gatewayResponse'

GetRequestIsAppropriateForCasAuthentication ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the request is appropriate for CAS authentication. Generally, this is true for most requests except those for images, style sheets, javascript files and anything generated by the built-in ASP.NET handlers (i.e., web resources, trace handler).

GetRequestIsCasAuthenticationResponse ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the request is a return request from the CAS server containing a CAS ticket

GetRequestIsCasSingleSignOut ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the request is a CAS Single Sign Out request

GetRequestIsProxyResponse ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the request is an inbound proxy callback verifications from the CAS server

GetRequestIsUnAuthenticated ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the current request is unauthenticated

GetRequestIsUnauthorized ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the current request is unauthorized

GetRequestRequiresGateway ( System.Web.HttpContextBase httpContext, GatewayStatus status ) : bool

Determines whether the current request requires a Gateway authentication redirect

GetResponseIsCasLoginRedirect ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the current request will be redirected to the CAS login page

GetUserDoesNotAllowSessionCookies ( System.Web.HttpContextBase httpContext, GatewayStatus status ) : bool

Determines whether the user's browser refuses to accept session cookies

RequestEvaluator ( IUrlUtil urlUtil, IAuthenticationService authenticationService, ICasServices casServices ) : System

Private Methods

Method Description
GetRequestIsCookiesRequiredUrl ( System.Web.HttpContextBase httpContext ) : bool

Determines whether the request is for the CookiesRequiredUrl defined in web.config

GetUserIsAuthenticated ( ) : bool

Determines whether the User associated with the request has been defined and is authenticated.

Method Details

GetRequestHasCasTicket() public method

Determines whether the request has a CAS ticket in the URL
public GetRequestHasCasTicket ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestHasGatewayParameter() public method

Determines whether the request contains the GatewayParameterName defined in web.config or the default value 'gatewayResponse'
public GetRequestHasGatewayParameter ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestIsAppropriateForCasAuthentication() public method

Determines whether the request is appropriate for CAS authentication. Generally, this is true for most requests except those for images, style sheets, javascript files and anything generated by the built-in ASP.NET handlers (i.e., web resources, trace handler).
public GetRequestIsAppropriateForCasAuthentication ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestIsCasAuthenticationResponse() public method

Determines whether the request is a return request from the CAS server containing a CAS ticket
public GetRequestIsCasAuthenticationResponse ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestIsCasSingleSignOut() public method

Determines whether the request is a CAS Single Sign Out request
public GetRequestIsCasSingleSignOut ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestIsProxyResponse() public method

Determines whether the request is an inbound proxy callback verifications from the CAS server
public GetRequestIsProxyResponse ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestIsUnAuthenticated() public method

Determines whether the current request is unauthenticated
public GetRequestIsUnAuthenticated ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestIsUnauthorized() public method

Determines whether the current request is unauthorized
public GetRequestIsUnauthorized ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetRequestRequiresGateway() public method

Determines whether the current request requires a Gateway authentication redirect
public GetRequestRequiresGateway ( System.Web.HttpContextBase httpContext, GatewayStatus status ) : bool
httpContext System.Web.HttpContextBase
status GatewayStatus
return bool

GetResponseIsCasLoginRedirect() public method

Determines whether the current request will be redirected to the CAS login page
public GetResponseIsCasLoginRedirect ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
return bool

GetUserDoesNotAllowSessionCookies() public method

Determines whether the user's browser refuses to accept session cookies
public GetUserDoesNotAllowSessionCookies ( System.Web.HttpContextBase httpContext, GatewayStatus status ) : bool
httpContext System.Web.HttpContextBase
status GatewayStatus
return bool

RequestEvaluator() public method

public RequestEvaluator ( IUrlUtil urlUtil, IAuthenticationService authenticationService, ICasServices casServices ) : System
urlUtil IUrlUtil
authenticationService IAuthenticationService
casServices ICasServices
return System