コード例 #1
0
        public static CassandraResourceStore Initialize(ISession session)
        {
            var apiStore = CassandraKeyValueStore <string, ApiResource> .Initialize(session, "identityserver_apiresources");

            var identityStore = CassandraKeyValueStore <string, IdentityResource> .Initialize(session, "identityserver_identityresources");

            return(new CassandraResourceStore(identityStore, apiStore));
        }
コード例 #2
0
        public static CassandraClientStore Initialize(ISession session)
        {
            var kvStore = CassandraKeyValueStore <string, Client> .Initialize(session, "identityserver_clients");

            return(new CassandraClientStore(kvStore));
        }
コード例 #3
0
 private CassandraClientStore(CassandraKeyValueStore <string, Client> store)
 {
     _store = store;
 }
コード例 #4
0
 private CassandraResourceStore(CassandraKeyValueStore <string, IdentityResource> identityStore, CassandraKeyValueStore <string, ApiResource> apiStore)
     : this((IKeyValueStore <string, IdentityResource>)identityStore, (IKeyValueStore <string, ApiResource>)apiStore)
 {
 }
コード例 #5
0
 private CassandraPersistedGrantStore(CassandraKeyValueStore <string, PersistedGrant> store)
 {
     _store = store;
 }
コード例 #6
0
 private CassandraScopeStore(CassandraKeyValueStore <string, Scope> store)
 {
     _store = store;
 }
コード例 #7
0
        public static CassandraScopeStore Initialize(ISession session)
        {
            var kvStore = CassandraKeyValueStore <string, Scope> .Initialize(session, "identityserver_scopes");

            return(new CassandraScopeStore(kvStore));
        }