Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	src/oic/utils/authn/user.py
  • Loading branch information
daniel evertsson committed Apr 4, 2014
2 parents 0373a73 + 355970d commit 98e383f
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions oc3/oc_config.py.example
Expand Up @@ -6,26 +6,23 @@ baseurl = "https://localhost"
issuer = "%s:%%d" % baseurl
keys = {
"RSA": {
"key": "oc_keys/key.pem",
"key": "cp_keys/key.pem",
"usage": ["enc", "sig"]
}
}

# ..... If you want to use CAS authentication ....
#AUTHN = "CasAuthnMethod"
CAS_SERVER = "https://cas.umu.se"
CAS_SERVER = "https://cas.umu.se"
SERVICE_URL = "%s/verify" % issuer

#Only Username and password.
AUTHORIZATION = {
#"CAS" : {"ACR": "CAS", "WEIGHT": 1, "URL": SERVICE_URL},
"UserPassword" : {"ACR": "PASSWORD", "WEIGHT": 1, "URL": SERVICE_URL}
}
# ..... Otherwise
#AUTHN = "Simple"

COOKIENAME = 'pyoic'
COOKIETTL = 4 * 60 # 4 hours
SYM_KEY = "So Little-Time,G" # len must be 16 if AES 128 which is default
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"
Expand Down Expand Up @@ -78,12 +75,11 @@ USERDB = {

# ======= DISTRIBUTED CLAIMS ===========

#CLAIMS_PROVIDER = "https://localhost:8093/"
CLAIMS_PROVIDER = ""
CLAIMS_PROVIDER = "https://localhost:8093/"

CLIENT_INFO = {
CLAIMS_PROVIDER: {
"userclaims_endpoint": "%suserclaims" % CLAIMS_PROVIDER,
"userclaims_endpoint":"%suserclaims" % CLAIMS_PROVIDER,
"client_id": "client_1",
"client_secret": "hemlig",
"x509_url": "%scp_keys/cert.pem" % CLAIMS_PROVIDER,
Expand All @@ -107,8 +103,8 @@ LDAP = {
}

LDAP_EXTRAVALIDATION = {
"verifyAttr": "eduPersonAffiliation",
"verifyAttrValid": ['employee', 'staff', 'student']
"verify_attr": "eduPersonAffiliation",
"verify_attr_valid": ['employee', 'staff', 'student']
}

USERINFO = "SIMPLE"
Expand Down

0 comments on commit 98e383f

Please sign in to comment.