-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.py
77 lines (67 loc) · 1.93 KB
/
config.py
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- coding: utf-8 -*-
# issuer= "https://www.kodtest.se/rolandsOP"
baseurl = "https://localhost"
#baseurl = "https://lingon.ladok.umu.se"
issuer = "{base}:{port}/"
keys = [
{"type": "RSA", "key": "cp_keys/key.pem", "use": ["enc", "sig"]},
{"type": "EC", "crv": "P-256", "use": ["sig"]},
{"type": "EC", "crv": "P-256", "use": ["enc"]}
]
SERVICE_URL = "{issuer}/verify"
#Only Username and password.
AUTHENTICATION = {
"UserPassword": {"ACR": "PASSWORD", "WEIGHT": 1, "URL": SERVICE_URL,
"END_POINTS": ["verify"]}
}
COOKIENAME = 'pyoic'
COOKIETTL = 4 * 60 # 4 hours
SYM_KEY = "SoLittleTime,Got"
SERVER_CERT = "certs/server.crt"
SERVER_KEY = "certs/server.key"
#CERT_CHAIN="certs/chain.pem"
CERT_CHAIN = None
# ======= SIMPLE DATABASE ==============
USERINFO = "SIMPLE"
USERDB = {
"diana": {
"sub": "dikr0001",
"name": "Diana Krall",
"given_name": "Diana",
"family_name": "Krall",
"nickname": "Dina",
"email": "diana@example.org",
"email_verified": False,
"phone_number": "+46 90 7865000",
"address": {
"street_address": "Umeå Universitet",
"locality": "Umeå",
"postal_code": "SE-90187",
"country": "Sweden"
},
},
"babs": {
"sub": "babs0001",
"name": "Barbara J Jensen",
"given_name": "Barbara",
"family_name": "Jensen",
"nickname": "babs",
"email": "babs@example.com",
"email_verified": True,
"address": {
"street_address": "100 Universal City Plaza",
"locality": "Hollywood",
"region": "CA",
"postal_code": "91608",
"country": "USA",
},
},
"upper": {
"sub": "uppe0001",
"name": "Upper Crust",
"given_name": "Upper",
"family_name": "Crust",
"email": "uc@example.com",
"email_verified": True,
}
}