Split config.py.example into two files onevery simple and one slightly more complex.

This commit is contained in:
Roland Hedberg 2014-12-16 13:15:57 +01:00
parent 1b2b0cce62
commit 4d5d75d776
2 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,77 @@
# -*- coding: utf-8 -*-
# issuer= "https://www.kodtest.se/rolandsOP"
baseurl = "https://localhost"
#baseurl = "https://lingon.ladok.umu.se"
issuer = "%s:%%d" % baseurl
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 = "%s/verify" % issuer
#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,
}
}