示例#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
        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 SearchModelConverter(IUserService userService, IPathUtil pathUtil, IUrlUtil urlUtil,
                             IAlbumService albumService)
 {
     _userService  = userService;
     this.pathUtil = pathUtil;
     this.urlUtil  = urlUtil;
     _albumService = albumService;
 }
示例#4
0
 public RequestEvaluator(
     IUrlUtil urlUtil,
     IAuthenticationService authenticationService,
     ICasServices casServices)
 {
     _urlUtil = urlUtil;
     _authenticationService = authenticationService;
     _casServices           = casServices;
 }
 public NotificationsEventManager(IUserService userService, IPhotoService photoService,
                                  IAlbumService albumService, IUrlUtil urlUtil, IPhotoCommentService commentService)
 {
     _userService    = userService;
     _photoService   = photoService;
     _hubNotify      = GlobalHost.ConnectionManager.GetHubContext <NotificationsHub>();
     _urlUtil        = urlUtil;
     _albumService   = albumService;
     _commentService = commentService;
 }
 public Cas10TicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil) {
 }
 protected AbstractUrlTicketValidator(ICasServices casServices, 
     IUrlUtil urlUtil) {
     CASServices = casServices;
     UrlUtil = urlUtil;
 }
 public TicketValidatorFactory(ICasServices casServices,
     IUrlUtil urlUtil) {
     _casServices = casServices;
     _urlUtil = urlUtil;
 }
示例#9
0
 protected AbstractUrlTicketValidator(ICasServices casServices,
                                      IUrlUtil urlUtil)
 {
     CASServices = casServices;
     UrlUtil     = urlUtil;
 }
 public Cas10TicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil)
 {
 }
 public RequestEvaluator(
     IUrlUtil urlUtil,
     IAuthenticationService authenticationService,
     ICasServices casServices) {
     _urlUtil = urlUtil;
     _authenticationService = authenticationService;
     _casServices = casServices;
 }
示例#12
0
 protected AbstractCasProtocolTicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil)
 {
 }
 public TicketValidatorFactory(ICasServices casServices,
                               IUrlUtil urlUtil)
 {
     _casServices = casServices;
     _urlUtil     = urlUtil;
 }
 protected AbstractCasProtocolTicketValidator(ICasServices casServices, IUrlUtil urlUtil)
     : base(casServices, urlUtil) {
 }