public AuthenticationService(IMembershipDataSource dataSource, IUserManager userManager, ISecurityManager securityManager, IAuthenticationCookieService cookieService)
 {
     this._dataSource = dataSource;
     this._userManager = userManager;
     this._securityManager = securityManager;
     this._cookieService = cookieService;
 }
 public AuthenticationService(IMembershipDataSource dataSource, IUserManager userManager, ISecurityManager securityManager, IAuthenticationCookieService cookieService)
 {
     this._dataSource      = dataSource;
     this._userManager     = userManager;
     this._securityManager = securityManager;
     this._cookieService   = cookieService;
 }
Пример #3
0
        public Grant(IHttpContextAccessor httpContextAccessor, IAuthenticationCookieService authCookieService, IAuthenticationSessionService authSessionService, IAuthorizeService authorizeService,
                     AuthorizeLevel grantType = AuthorizeLevel.NeedAuthorize, GrantPriority grantPriority = GrantPriority.Default)
        {
            _httpContextAccessor = httpContextAccessor;
            _authCookieService   = authCookieService;
            _authSessionService  = authSessionService;
            _authorizeService    = authorizeService;

            _grantType               = grantType;
            _httpContext             = _httpContextAccessor.HttpContext;
            _isAuthenticationChecked = "IsAuthenticationChecked";

            _grantPriority = grantPriority;
        }
Пример #4
0
 public AuthorizeController(IUserRepository userRepository, IAuthenticationCookieService authenticationCookieService, IAuthenticationSessionService authentcationSessionService)
 {
     _userRepository = userRepository;
     _authenticationCookieService = authenticationCookieService;
     _authentcationSessionService = authentcationSessionService;
 }