Skip to content

Fix SAMLServiceProvider.Metadata to include signing key - #251

Open
mitar wants to merge 1 commit into
russellhaering:mainfrom
mitar:metadata
Open

Fix SAMLServiceProvider.Metadata to include signing key#251
mitar wants to merge 1 commit into
russellhaering:mainfrom
mitar:metadata

Conversation

@mitar

@mitar mitar commented Oct 14, 2025

Copy link
Copy Markdown

Fixes #250.

Comment thread saml.go
if err != nil {
return nil, err
}
if signingCertBytes != nil {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, signingCertBytes != nil (and encryptionCertBytes != nil is not really needed because GetSigningCertBytes and GetEncryptionCertBytes both return an error if cert is empty. MetadataWithSLO below is correct that it does not even check for nil. But I included it for parity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SAMLServiceProvider.Metadata uses deprecated GetSigningKey and does not work correctly if SetSPKeyStore is used

1 participant