summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2021-09-15 15:29:10 +0200
committerLinus Nordberg <linus@nordberg.se>2021-09-15 15:29:10 +0200
commit838d36e7cab2f11322d4c3c211407a73ebc712b9 (patch)
treecfbb667b8232221b1d00cdbb1ab5428b4647ef8f /demo
parent6cccfe8cb27fc58f373c069e53f1c8773427d173 (diff)
add simple authentication based on a local yaml file
This allows for mapping username/password pairs to sets of organisations with 'r' or 'rw' permissions. To be replaced with an external service providing a JWT in an HTTP header.
Diffstat (limited to 'demo')
-rw-r--r--demo/wsgi_demo_users.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/demo/wsgi_demo_users.yaml b/demo/wsgi_demo_users.yaml
new file mode 100644
index 0000000..49c4795
--- /dev/null
+++ b/demo/wsgi_demo_users.yaml
@@ -0,0 +1,15 @@
+user1:
+ pw: pw1
+ authz:
+ sunet.se: r
+
+user2:
+ pw: pw2
+ authz:
+ su.se: r
+
+user3:
+ pw: pw3
+ authz:
+ sunet.se: rw
+ su.se: r