C# Класс NGM.CasClient.Client.Extensions.RequestEvaluator

Наследование: IRequestEvaluator
Показать файл Открыть проект

Открытые методы

Метод Описание
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