Skip to content

Commit

Permalink
Merge pull request #102 from skoranda/empty_name_format
Browse files Browse the repository at this point in the history
Fix for no Format in NameIDPolicy for SAML2 frontend
  • Loading branch information
johanlundberg authored Jun 2, 2017
2 parents a07c602 + 672a29f commit 2daaaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/satosa/frontends/saml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _handle_authn_request(self, context, binding_in, idp):
context.state[self.name] = self._create_state_data(context, idp.response_args(authn_req),
context.request.get("RelayState"))

if authn_req.name_id_policy:
if authn_req.name_id_policy and authn_req.name_id_policy.format:
name_format = saml_name_id_format_to_hash_type(authn_req.name_id_policy.format)
else:
# default to name id format from metadata, or just transient name id
Expand Down

0 comments on commit 2daaaa0

Please # to comment.