C# 클래스 NGM.CasClient.Client.Extensions.RequestEvaluator

상속: IRequestEvaluator
파일 보기 프로젝트 열기: NIKASoftwareDevs/Orchard

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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.

메소드 상세

GetRequestHasCasTicket() 공개 메소드

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

GetRequestHasGatewayParameter() 공개 메소드

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
리턴 bool

GetRequestIsAppropriateForCasAuthentication() 공개 메소드

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
리턴 bool

GetRequestIsCasAuthenticationResponse() 공개 메소드

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
리턴 bool

GetRequestIsCasSingleSignOut() 공개 메소드

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

GetRequestIsProxyResponse() 공개 메소드

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
리턴 bool

GetRequestIsUnAuthenticated() 공개 메소드

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

GetRequestIsUnauthorized() 공개 메소드

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

GetRequestRequiresGateway() 공개 메소드

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
리턴 bool

GetResponseIsCasLoginRedirect() 공개 메소드

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

GetUserDoesNotAllowSessionCookies() 공개 메소드

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
리턴 bool

RequestEvaluator() 공개 메소드

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