forked from bluesky/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoy_authentication.yml
More file actions
35 lines (35 loc) · 1014 Bytes
/
toy_authentication.yml
File metadata and controls
35 lines (35 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
authentication:
providers:
- provider: toy
authenticator: tiled.authenticators:DictionaryAuthenticator
args:
users_to_passwords:
alice: ${ALICE_PASSWORD}
bob: ${BOB_PASSWORD}
cara: ${CARA_PASSWORD}
admin: "admin"
confirmation_message: "You have logged in as {id}."
tiled_admins:
- provider: toy
id: admin
access_control:
access_policy: "tiled.access_control.access_policies:TagBasedAccessPolicy"
args:
provider: "toy"
scopes:
- "read:metadata"
- "read:data"
- "write:metadata"
- "write:data"
- "create"
tags_db:
uri: "file:example_configs/access_tags/compiled_tags.sqlite"
access_tags_parser: "tiled.access_control.access_tags:AccessTagsParser"
trees:
- path: /
tree: catalog
args:
uri: "sqlite+aiosqlite:///./example_configs/catalog/catalog.db"
writable_storage: "./example_configs/catalog/data"
init_if_not_exists: true
top_level_access_blob: {"tags": ["public"]}