Files
deb-python-pysaml2/example/sp-wsgi/service_conf.py
Hans Hörberg 664503f3f8 Added configuration so the test sp can change sign and digest algorithm.
If

SIGN_ALG = None
DIGEST_ALG = None

in service_conf sha1 will be used.
2015-11-06 12:25:59 +01:00

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 = ""