Skip to content

Commit

Permalink
[ET-158, ET-160] remove subject, add nameidpolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
srenatus committed May 13, 2016
1 parent ed89fa9 commit 1b7755c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/esaml.erl
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,10 @@ to_xml(#esaml_authnreq{version = V, issue_instant = Time, destination = Dest, is
#xmlAttribute{name = 'ProtocolBinding', value = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"}],
content = [
#xmlElement{name = 'saml:Issuer', content = [#xmlText{value = Issuer}]},
#xmlElement{name = 'saml:Subject', content = [
#xmlElement{name = 'saml:SubjectConfirmation', attributes = [#xmlAttribute{name = 'Method', value = "urn:oasis:names:tc:SAML:2.0:cm:bearer"}]}
]}
#xmlElement{name = 'samlp:NameIDPolicy',
attributes = [
#xmlAttribute{name = 'Format', value = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'}
]}
]
});

Expand Down

0 comments on commit 1b7755c

Please sign in to comment.