示例#1
0
 public AuthService(ILogger <AuthService> logger, IOptions <AuthServerConfig> config, ObjectPool <MessageReader> readerPool, IEventManager eventManager)
 {
     _logger       = logger;
     _config       = config.Value;
     _readerPool   = readerPool;
     _eventManager = eventManager;
 }
示例#2
0
 public AuthApiFromWcf(AuthServerConfig _server)
 {
     this.url = _server.WcfUrl;
     if (!ValidateHelper.IsPlumpString(this.url))
     {
         throw new Exception($"{nameof(IAuthApiWcfServiceContract)}没有配置远程地址");
     }
 }
        private readonly AuthServerConfig _authServerConfig;//配置

        public UserAuthorizeMiddleware(RequestDelegate next, AuthServerConfig authServerConfig)
        {
            if (next == null)
            {
                throw new ArgumentNullException(nameof(next));
            }
            _next             = next;
            _authServerConfig = authServerConfig;
            //_httpClient = httpRequest;
        }
 public UserAuthorizeFilter(bool IsRedirectToLogin, AuthServerConfig filterConfig, IHttpClientFactoryHelper httpRequest)
 {
     _IsRedirectToLogin = IsRedirectToLogin;
     _httpClient        = httpRequest;
     _authServerConfig  = filterConfig;
 }
示例#5
0
 public AuthApiFromWebApi(AuthServerConfig _server)
 {
     this._server = _server;
 }
 public SecuredController(IOptions <AuthServerConfig> configuration)
 {
     _configuration = (configuration ?? throw new ArgumentNullException(nameof(configuration))).Value;
 }
 public AuthServerValidationProvider(AuthServerConfig server, IValidationDataProvider _dataProvider)
 {
     this._server       = server;
     this._dataProvider = _dataProvider;
 }
示例#8
0
 public AppConfigManager()
 {
     AuthServerConfig = new AuthServerConfig();
 }