pysaml2
pysaml2 copied to clipboard
Allow an SP ServiceName per language
Currently there can be only one ServiceName tag constructed in metadata, but more are sometimes needed for different languages.
metadata.py, functiondo_attribute_consuming_servicedefines the service name asservice_name = [md.ServiceName(text=text, lang=lang)]. It can probably be a list with multiple entries, one for each language, resulting in something like:<ns0:ServiceName xml:lang="en">Some service name</ns0:ServiceName> <ns0:ServiceName xml:lang="da">Et eller andet servicenavn</ns0:ServiceName> ...It would be easy to check if
conf.nameis a list of tuples, and construct theservice_namelist by it, similar to how it's done indo_key_descriptor
Originally posted by @Lapeth in #377