Skip to content

Commit c2f4f97

Browse files
committed
feat: sign SAML AuthnRequest with RSA-SHA256
Bump to github.com/crewjam/saml@v0.5.1 to support RSA-SHA256 crewjam/saml@v0.4.14...v0.5.1
1 parent 1ee031e commit c2f4f97

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ require (
120120
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc
121121
github.com/btcsuite/btcutil v1.0.2
122122
github.com/coreos/go-oidc/v3 v3.20.0
123-
github.com/crewjam/saml v0.4.14
123+
github.com/crewjam/saml v0.5.1
124124
github.com/didip/tollbooth/v5 v5.1.1
125125
github.com/ethereum/go-ethereum v1.17.0
126126
github.com/fatih/structs v1.1.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ github.com/crewjam/httperr v0.2.0 h1:b2BfXR8U3AlIHwNeFFvZ+BV1LFvKLlzMjzaTnZMybNo
9696
github.com/crewjam/httperr v0.2.0/go.mod h1:Jlz+Sg/XqBQhyMjdDiC+GNNRzZTD7x39Gu3pglZ5oH4=
9797
github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
9898
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
99+
github.com/crewjam/saml v0.5.1 h1:g+mfp0CrLuLRZCK793PgJcZeg5dS/0CDwoeAX2zcwNI=
100+
github.com/crewjam/saml v0.5.1/go.mod h1:r0fDkmFe5URDgPrmtH0IYokva6fac3AUdstiPhyEolQ=
99101
github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
100102
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
101103
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=

internal/api/saml.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212

1313
"github.com/crewjam/saml"
1414
"github.com/crewjam/saml/samlsp"
15+
dsig "github.com/russellhaering/goxmldsig"
1516
)
1617

1718
// newSAMLServiceProvider constructs a ServiceProvider for the given IdP
@@ -41,6 +42,7 @@ func (a *API) newSAMLServiceProvider(identityProvider *saml.EntityDescriptor, id
4142
})
4243

4344
provider.AuthnNameIDFormat = saml.PersistentNameIDFormat
45+
provider.SignatureMethod = dsig.RSASHA256SignatureMethod
4446

4547
return &provider
4648
}

0 commit comments

Comments
 (0)