Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

sign AuthnRequests and AuthnResponses with SHA256 #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions authnrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func NewAuthnRequest() *AuthnRequest {
XMLName: xml.Name{
Local: "samlsig:SignatureMethod",
},
Algorithm: "http://www.w3.org/2000/09/xmldsig#rsa-sha1",
Algorithm: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
},
SamlsigReference: SamlsigReference{
XMLName: xml.Name{
Expand All @@ -193,7 +193,7 @@ func NewAuthnRequest() *AuthnRequest {
XMLName: xml.Name{
Local: "samlsig:DigestMethod",
},
Algorithm: "http://www.w3.org/2000/09/xmldsig#sha1",
Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256",
},
DigestValue: DigestValue{
XMLName: xml.Name{
Expand Down
4 changes: 2 additions & 2 deletions authnresponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func NewSignedResponse() *Response {
XMLName: xml.Name{
Local: "samlsig:SignatureMethod",
},
Algorithm: "http://www.w3.org/2000/09/xmldsig#rsa-sha1",
Algorithm: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
},
SamlsigReference: SamlsigReference{
XMLName: xml.Name{
Expand All @@ -151,7 +151,7 @@ func NewSignedResponse() *Response {
XMLName: xml.Name{
Local: "samlsig:DigestMethod",
},
Algorithm: "http://www.w3.org/2000/09/xmldsig#sha1",
Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256",
},
DigestValue: DigestValue{
XMLName: xml.Name{
Expand Down