flask-saml2 icon indicating copy to clipboard operation
flask-saml2 copied to clipboard

NameIDFormat is printed but not passed to template

Open FMJansen opened this issue 5 years ago • 0 comments

In the metadata template for the SP on line 18 (sp/templates/flask_saml2_sp/metadata.xml) the NameIDFormat is printed: <md:NameIDFormat>{{ nameid_format }}</md:NameIDFormat>

Another var, {{ certificate }}, is passed to the template through sp.get_metadata_context() in sp/sp.py to the Metadata class in sp/views.py. However, {{ nameid_format }} is missing there.

So I expected to see my NameIDFormat if I defined it in app.config['SAML2_SP'], but it didn’t show up.

FMJansen avatar May 07 '20 08:05 FMJansen