diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-05-27 09:20:30 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-05-27 09:20:30 +0200 |
commit | d328cd83b46853933b910f76e7a5e6a67f76b30a (patch) | |
tree | 8688894575ec9c158f2b83a60ca1bf192010aebf /src/saml2/metadata.py | |
parent | b63f82a1cc8ab096736411100e5650bf4cd41267 (diff) | |
download | pysaml2-d328cd83b46853933b910f76e7a5e6a67f76b30a.tar.gz |
Made sure requested/Optional attributes gets expressed in metadata.
Diffstat (limited to 'src/saml2/metadata.py')
-rw-r--r-- | src/saml2/metadata.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/saml2/metadata.py b/src/saml2/metadata.py index c810974c..329f755e 100644 --- a/src/saml2/metadata.py +++ b/src/saml2/metadata.py @@ -499,12 +499,13 @@ def do_spsso_descriptor(conf, cert=None): for acs in spsso.attribute_consuming_service: if not acs.requested_attribute: acs.requested_attribute = requested_attributes + else: + spsso.attribute_consuming_service = [md.AttributeConsumingService( + requested_attribute=requested_attributes, + service_name=[md.ServiceName(lang="en", text=conf.name)], + index="1", + )] -# spsso.attribute_consuming_service = [md.AttributeConsumingService( -# requested_attribute=requested_attributes, -# service_name= [md.ServiceName(lang="en",text=conf.name)], -# index="1", -# )] # try: # if conf.description: # try: |