23 lines
444 B
Python
23 lines
444 B
Python
from saml2.assertion import Policy
|
|
import saml2.xmldsig as ds
|
|
|
|
HOST = 'localhost'
|
|
PORT = 8087
|
|
HTTPS = False
|
|
SIGN_ALG = None
|
|
DIGEST_ALG = None
|
|
#SIGN_ALG = ds.SIG_RSA_SHA512
|
|
#DIGEST_ALG = ds.DIGEST_SHA512
|
|
|
|
# Which groups of entity categories to use
|
|
POLICY = Policy(
|
|
{
|
|
"default": {"entity_categories": ["swamid", "edugain"]}
|
|
}
|
|
)
|
|
|
|
# HTTPS cert information
|
|
SERVER_CERT = "pki/mycert.pem"
|
|
SERVER_KEY = "pki/mykey.pem"
|
|
CERT_CHAIN = ""
|