feat: Authentication provider display (#4332)
* layout * Refactor * wip * Quick changes to make this deployable without full management * test
This commit is contained in:
13
app/stores/AuthenticationProvidersStore.ts
Normal file
13
app/stores/AuthenticationProvidersStore.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import AuthenticationProvider from "~/models/AuthenticationProvider";
|
||||
import BaseStore, { RPCAction } from "./BaseStore";
|
||||
import RootStore from "./RootStore";
|
||||
|
||||
export default class AuthenticationProvidersStore extends BaseStore<
|
||||
AuthenticationProvider
|
||||
> {
|
||||
actions = [RPCAction.List, RPCAction.Update];
|
||||
|
||||
constructor(rootStore: RootStore) {
|
||||
super(rootStore, AuthenticationProvider);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import ApiKeysStore from "./ApiKeysStore";
|
||||
import AuthStore from "./AuthStore";
|
||||
import AuthenticationProvidersStore from "./AuthenticationProvidersStore";
|
||||
import CollectionGroupMembershipsStore from "./CollectionGroupMembershipsStore";
|
||||
import CollectionsStore from "./CollectionsStore";
|
||||
import DialogsStore from "./DialogsStore";
|
||||
@@ -28,6 +29,7 @@ import WebhookSubscriptionsStore from "./WebhookSubscriptionStore";
|
||||
export default class RootStore {
|
||||
apiKeys: ApiKeysStore;
|
||||
auth: AuthStore;
|
||||
authenticationProviders: AuthenticationProvidersStore;
|
||||
collections: CollectionsStore;
|
||||
collectionGroupMemberships: CollectionGroupMembershipsStore;
|
||||
dialogs: DialogsStore;
|
||||
@@ -57,6 +59,7 @@ export default class RootStore {
|
||||
// PoliciesStore must be initialized before AuthStore
|
||||
this.policies = new PoliciesStore(this);
|
||||
this.apiKeys = new ApiKeysStore(this);
|
||||
this.authenticationProviders = new AuthenticationProvidersStore(this);
|
||||
this.auth = new AuthStore(this);
|
||||
this.collections = new CollectionsStore(this);
|
||||
this.collectionGroupMemberships = new CollectionGroupMembershipsStore(this);
|
||||
@@ -85,6 +88,7 @@ export default class RootStore {
|
||||
|
||||
logout() {
|
||||
this.apiKeys.clear();
|
||||
this.authenticationProviders.clear();
|
||||
// this.auth omitted for reasons...
|
||||
this.collections.clear();
|
||||
this.collectionGroupMemberships.clear();
|
||||
|
||||
Reference in New Issue
Block a user