Skip to content

Commit

Permalink
removed IDPSSODescriptor from SP metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-mt committed Feb 8, 2018
1 parent 319306b commit 9a79382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (sp *SAMLServiceProvider) Metadata() (*types.EntityDescriptor, error) {
return &types.EntityDescriptor{
ValidUntil: time.Now().UTC().Add(time.Hour * 24 * 7), // 7 days
EntityID: sp.ServiceProviderIssuer,
SPSSODescriptor: types.SPSSODescriptor{
SPSSODescriptor: &types.SPSSODescriptor{
AuthnRequestsSigned: sp.SignAuthnRequests,
WantAssertionsSigned: !sp.SkipSignatureValidation,
ProtocolSupportEnumeration: SAMLProtocolNamespace,
Expand Down
6 changes: 3 additions & 3 deletions types/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ type EntityDescriptor struct {
XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:metadata EntityDescriptor"`
ValidUntil time.Time `xml:"validUntil,attr"`
// SAML 2.0 8.3.6 Entity Identifier could be used to represent issuer
EntityID string `xml:"entityID,attr"`
SPSSODescriptor SPSSODescriptor `xml:"SPSSODescriptor"`
IDPSSODescriptor IDPSSODescriptor `xml:"IDPSSODescriptor"`
EntityID string `xml:"entityID,attr"`
SPSSODescriptor *SPSSODescriptor `xml:"SPSSODescriptor,omitempty"`
IDPSSODescriptor *IDPSSODescriptor `xml:"IDPSSODescriptor,omitempty"`
}

type Endpoint struct {
Expand Down

0 comments on commit 9a79382

Please sign in to comment.