コード例 #1
0
        public CASClient(
            ShellSettings settings,
            ITicketValidatorFactory ticketValidatorFactory,
            IRequestEvaluator requestEvaluator,
            IClock clock,
            IUrlUtil urlUtil,
            IAuthenticationService authenticationService,
            ICasServices casServices)
        {
            _settings = settings;
            _ticketValidatorFactory = ticketValidatorFactory;
            _requestEvaluator       = requestEvaluator;
            _clock   = clock;
            _urlUtil = urlUtil;
            _authenticationService = authenticationService;
            _casServices           = casServices;

            _xmlNamespaceManager = new XmlNamespaceManager(_xmlNameTable);
            _xmlNamespaceManager.AddNamespace("cas", "http://www.yale.edu/tp/cas");
            _xmlNamespaceManager.AddNamespace("saml", "urn: oasis:names:tc:SAML:1.0:assertion");
            _xmlNamespaceManager.AddNamespace("saml2", "urn: oasis:names:tc:SAML:1.0:assertion");
            _xmlNamespaceManager.AddNamespace("samlp", "urn: oasis:names:tc:SAML:1.0:protocol");

            Logger = NullLogger.Instance;
            T      = NullLocalizer.Instance;
        }
コード例 #2
0
ファイル: CASClient.cs プロジェクト: Jetski5822/NGM.CasClient
        public CASClient(
            ShellSettings settings, 
            ITicketValidatorFactory ticketValidatorFactory,
            IRequestEvaluator requestEvaluator,
            IClock clock,
            IUrlUtil urlUtil,
            IAuthenticationService authenticationService,
            ICasServices casServices) {
            _settings = settings;
            _ticketValidatorFactory = ticketValidatorFactory;
            _requestEvaluator = requestEvaluator;
            _clock = clock;
            _urlUtil = urlUtil;
            _authenticationService = authenticationService;
            _casServices = casServices;

            _xmlNamespaceManager = new XmlNamespaceManager(_xmlNameTable);
            _xmlNamespaceManager.AddNamespace("cas", "http://www.yale.edu/tp/cas");
            _xmlNamespaceManager.AddNamespace("saml", "urn: oasis:names:tc:SAML:1.0:assertion");
            _xmlNamespaceManager.AddNamespace("saml2", "urn: oasis:names:tc:SAML:1.0:assertion");
            _xmlNamespaceManager.AddNamespace("samlp", "urn: oasis:names:tc:SAML:1.0:protocol");

            Logger = NullLogger.Instance;
            T = NullLocalizer.Instance;
        }
コード例 #3
0
 public RequestEvaluator(
     IUrlUtil urlUtil,
     IAuthenticationService authenticationService,
     ICasServices casServices)
 {
     _urlUtil = urlUtil;
     _authenticationService = authenticationService;
     _casServices           = casServices;
 }
コード例 #4
0
 public CasMvcActionFilter(
     IRequestEvaluator requestEvaluator,
     ICasServices casServices,
     ICASActionFilter casActionFilter) {
     _requestEvaluator = requestEvaluator;
     _casServices = casServices;
     _casActionFilter = casActionFilter;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
コード例 #5
0
 public CasAuthorizationFilter(
     ICASClient casClient,
     ICasServices casServices,
     IRequestEvaluator requestEvaluator) {
     _casClient = casClient;
     _casServices = casServices;
     _requestEvaluator = requestEvaluator;
     Logger = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
コード例 #6
0
 public CasWebApiActionFilter(
     IRequestEvaluator requestEvaluator,
     ICasServices casServices,
     ICASActionFilter casActionFilter)
 {
     _requestEvaluator = requestEvaluator;
     _casServices      = casServices;
     _casActionFilter  = casActionFilter;
     Logger            = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
コード例 #7
0
 public CasAuthorizationFilter(
     ICASClient casClient,
     ICasServices casServices,
     IRequestEvaluator requestEvaluator)
 {
     _casClient        = casClient;
     _casServices      = casServices;
     _requestEvaluator = requestEvaluator;
     Logger            = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
コード例 #8
0
 public CasActionFilter(IServiceTicketManagerWrapper serviceTicketManagerWrapper,
                        IProxyTicketManagerWrapper proxyTicketManagerWrapper,
                        ICASClient casClient,
                        IRequestEvaluator requestEvaluator,
                        ICasServices casServices)
 {
     _serviceTicketManagerWrapper = serviceTicketManagerWrapper;
     _proxyTicketManagerWrapper   = proxyTicketManagerWrapper;
     _casClient        = casClient;
     _requestEvaluator = requestEvaluator;
     _casServices      = casServices;
     Logger            = NullLogger.Instance;
     T = NullLocalizer.Instance;
 }
コード例 #9
0
 public TicketValidatorFactory(ICasServices casServices,
     IUrlUtil urlUtil) {
     _casServices = casServices;
     _urlUtil = urlUtil;
 }
コード例 #10
0
 protected AbstractUrlTicketValidator(ICasServices casServices,
                                      IUrlUtil urlUtil)
 {
     CASServices = casServices;
     UrlUtil     = urlUtil;
 }
コード例 #11
0
 public TicketValidatorFactory(ICasServices casServices,
                               IUrlUtil urlUtil)
 {
     _casServices = casServices;
     _urlUtil     = urlUtil;
 }
コード例 #12
0
 public Cas10TicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil)
 {
 }
コード例 #13
0
 public RequestEvaluator(
     IUrlUtil urlUtil,
     IAuthenticationService authenticationService,
     ICasServices casServices) {
     _urlUtil = urlUtil;
     _authenticationService = authenticationService;
     _casServices = casServices;
 }
コード例 #14
0
 protected AbstractCasProtocolTicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil)
 {
 }
コード例 #15
0
 protected AbstractUrlTicketValidator(ICasServices casServices, 
     IUrlUtil urlUtil) {
     CASServices = casServices;
     UrlUtil = urlUtil;
 }
コード例 #16
0
 public Cas10TicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil) {
 }
コード例 #17
0
 protected AbstractCasProtocolTicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil) {
 }