Exemple #1
0
 protected BaseTokenStore(DapperServiceOptions options, TokenType tokenType, IScopeStore scopeStore, IClientStore clientStore)
 {
     this.options     = options ?? throw new ArgumentNullException("options");
     this.tokenType   = tokenType;
     this.scopeStore  = scopeStore ?? throw new ArgumentNullException("scopeStore");
     this.clientStore = clientStore ?? throw new ArgumentNullException("clientStore");
 }
Exemple #2
0
 protected BaseStore(DapperServiceOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     Options = options;
 }
Exemple #3
0
        public IdentityServerDapperExtensionsConfiguration(DapperServiceOptions option, ISqlDialect dialect)
        {
            this._option = option ?? throw new ArgumentNullException("option");

            DefaultMapper     = typeof(AutoClassMapper <>);
            MappingAssemblies = new List <Assembly>();
            Dialect           = dialect;
        }
        public ClientConfigurationCorsPolicyRegistration(DapperServiceOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            this.AdditionalRegistrations.Add(new Registration <DapperServiceOptions>(resolver => options));
        }
Exemple #5
0
 protected BaseTokenStore(DapperServiceOptions options, TokenType tokenType, IScopeStore scopeStore, IClientStore clientStore)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     if (scopeStore == null)
     {
         throw new ArgumentNullException(nameof(scopeStore));
     }
     if (clientStore == null)
     {
         throw new ArgumentNullException(nameof(clientStore));
     }
     Options     = options;
     TokenType   = tokenType;
     ScopeStore  = scopeStore;
     ClientStore = clientStore;
 }
Exemple #6
0
 public ConsentStore(DapperServiceOptions options) : base(options)
 {
 }
Exemple #7
0
 public RefreshTokenStore(DapperServiceOptions options, IScopeStore scopeStore, IClientStore clientStore)
     : base(options, TokenType.RefreshToken, scopeStore, clientStore)
 {
 }
Exemple #8
0
 public ClientConfigurationCorsPolicyService(DapperServiceOptions options) : base(options)
 {
 }
 public AuthorizationCodeStore(DapperServiceOptions options, IScopeStore scopeStore, IClientStore clientStore)
     : base(options, TokenType.AuthorizationCode, scopeStore, clientStore)
 {
 }
Exemple #10
0
 public ClientConfigurationCorsPolicyService(DapperServiceOptions options)
 {
     this.options = options ?? throw new ArgumentNullException("options");
 }
 public ScopeStore(DapperServiceOptions options) : base(options)
 {
 }
 public ClientStore(DapperServiceOptions options)
 {
     this.options = options ?? throw new ArgumentNullException("options");
 }
 public TokenHandleStore(DapperServiceOptions options, IScopeStore scopeStore, IClientStore clientStore)
     : base(options, Entities.TokenType.TokenHandle, scopeStore, clientStore)
 {
 }