Skip to content

Commit

Permalink
CZ-NIC#56 Rename config.py.full -> config_full.py, `config.py.simpl…
Browse files Browse the repository at this point in the history
…e -> config_simple.py` to make them importable (and IDE-highlighted) + correct PEP8 style violations :)
  • Loading branch information
mblomdahl committed Feb 25, 2019
1 parent 26c96e2 commit de2f5e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
24 changes: 12 additions & 12 deletions oidc_example/op2/config.py.full → oidc_example/op2/config_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{"type": "EC", "crv": "P-256", "use": ["enc"]}
]

ISSUER='http://localhost'
ISSUER = 'http://localhost'
SERVICE_URL = "{issuer}/verify"

USER_PASSWORD_END_POINTS = ["user_password", "multi_user_password_saml_verify",
Expand All @@ -13,32 +13,32 @@
JAVASCRIPT_END_POINTS = ['javascript_login', "multi_javascript_login"]

AUTHENTICATION = {
"SAML" : {"ACR": "SAML", "WEIGHT": 1, "END_POINTS": SAML_END_POINTS},
"UserPassword" : {"ACR": "PASSWORD", "WEIGHT": 2,
"END_POINTS": USER_PASSWORD_END_POINTS},
"SAML": {"ACR": "SAML", "WEIGHT": 1, "END_POINTS": SAML_END_POINTS},
"UserPassword": {"ACR": "PASSWORD", "WEIGHT": 2,
"END_POINTS": USER_PASSWORD_END_POINTS},
"SamlPass": {"ACR": "SAML_PASS", "WEIGHT": 3},
"JavascriptLogin": {"ACR": "JAVASCRIPT_LOGIN", "WEIGHT": 4,
"END_POINTS": JAVASCRIPT_END_POINTS},
"JavascriptPass": {"ACR": "JAVASCRIPT_PASS", "WEIGHT": 5},
}

COOKIENAME= 'pyoic'
COOKIETTL = 4*60 # 4 hours
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="certs/chain.pem"
CERT_CHAIN = None

# ======= SAML ==============
#User information is collected with SAML
#USERINFO = "SAML"
#User information is collected with a SAML attribute authority
#USERINFO = "AA"
#Name of the Service Provider configuration file.
# User information is collected with SAML
# USERINFO = "SAML"
# User information is collected with a SAML attribute authority
# USERINFO = "AA"
# Name of the Service Provider configuration file.
SP_CONFIG="sp_conf"
#Dictionary with userinformation for the SAML users. Must be empty.
# Dictionary with user information for the SAML users. Must be empty.
SAML = {}

# ======= SIMPLE DATABASE ==============
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
{"type": "EC", "crv": "P-256", "use": ["enc"]}
]

ISSUER='http://localhost'
ISSUER = 'http://localhost'
SERVICE_URL = "{issuer}/verify"

#Only Username and password.
# Only Username and password.
AUTHENTICATION = {
"UserPassword": {"ACR": "PASSWORD", "WEIGHT": 1, "URL": SERVICE_URL,
"END_POINTS": ["verify"]}
Expand All @@ -19,7 +19,7 @@

SERVER_CERT = "certs/server.crt"
SERVER_KEY = "certs/server.key"
#CERT_CHAIN="certs/chain.pem"
# CERT_CHAIN="certs/chain.pem"
CERT_CHAIN = None

# ======= SIMPLE DATABASE ==============
Expand Down Expand Up @@ -68,4 +68,3 @@
"email_verified": True,
}
}

0 comments on commit de2f5e6

Please sign in to comment.