Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata has a blank NameIDFormat #505

Open
lorodoes opened this issue Mar 10, 2023 · 2 comments
Open

metadata has a blank NameIDFormat #505

lorodoes opened this issue Mar 10, 2023 · 2 comments

Comments

@lorodoes
Copy link

My metadata has a missing NameIDFormat:

<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" validUntil="2023-03-12T15:11:37.069Z" entityID="https://terraboard.example.com/saml/metadata"> <SPSSODescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" validUntil="2023-03-12T15:11:37.069447433Z" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol" AuthnRequestsSigned="false" WantAssertionsSigned="true"> <KeyDescriptor use="encryption"> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <X509Data xmlns="http://www.w3.org/2000/09/xmldsig#"> <X509Certificate xmlns="http://www.w3.org/2000/09/xmldsig#">MIIF6TCCA9GgAwIBAgIUdU2inuRTmjpkHNbr0EtxuDkaZGAwDQYJKoZIhvcNAQELBQAwgYMxCzAJBgNVBAYTAlVTMREwDwYDVQQIDAhWaXJpZ2luYTEQMA4GA1UEBwwHSGVybmRvbjEMMAoGA1UECgwDU01YMRUwEwYDVQQLDAxDbG91ZGFzc3VyZWQxKjAoBgNVBAMMIXRlcnJhYm9hcmR2Mi1kZXYuY2xvdWRhc3N1cmVkLmNvbTAeFw0yMzAzMDYwMTU0MzlaFw0zMzAzMDMwMTU0MzlaMIGDMQswCQYDVQQGEwJVUzERMA8GA1UECAwIVmlyaWdpbmExEDAOBgNVBAcMB0hlcm5kb24xDDAKBgNVBAoMA1NNWDEVMBMGA1UECwwMQ2xvdWRhc3N1cmVkMSowKAYDVQQDDCF0ZXJyYWJvYXJkdjItZGV2LmNsb3VkYXNzdXJlZC5jb20wggIiM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QddHT5TfvsqQ2tN9nWNXsuqLmdgfj59jyL6m8Moch6gqEi/RCvLyRT9o3F7Tbr6rXkWSvt+T09QWJpbGU+x8pdB/YfUPTjMflKB1CDHuEm//DdVUQUzeGHbC+mhHAnF22c8NKuPmJBZt9LWypLA+eMFmb6igb8N4LsYcva0U2sUmY42vJaVlPZhkdwviJ+0ll6dBlcgSbEedUxvNSwGAangMGmgCRnxkonA1A5j/jFIicJwHskUcJ31NktFNwykv3OWgSUnCU+6I/6pv9m+KVODV5R/ifIBEqmqw9mP5WrgRyQC/3uURVHpphF7vs3gQoyRYieV8G/foOP3Hcv48KGXZ6RHJGy3r5zmxu570pZtiSRiPuzpJWNjojoE3v/JJlZJ2IySNxeVAZjLuVxEMvqw2/ljQ5C8nVQ9fuZKrno+v+R90MYPUegrHuxgH7mOCK9KpANo2W2y8GTgnC1d4oE=</X509Certificate> </X509Data> </KeyInfo> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"></EncryptionMethod> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes192-cbc"></EncryptionMethod> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"></EncryptionMethod> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"></EncryptionMethod> </KeyDescriptor> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://terraboard.example.com/saml/slo" ResponseLocation="https://terraboard.example.com/saml/slo"></SingleLogoutService> <NameIDFormat></NameIDFormat> <AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://terraboard.example.com/saml/acs" index="1"></AssertionConsumerService> <AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://terraboard.example.com/saml/acs" index="2"></AssertionConsumerService> </SPSSODescriptor> </EntityDescriptor>

Is this a bug or did a miss configuration?

@nihara-thomas
Copy link

Seeing the same. It appears to be intentional with this change.

@hellraiser-rnd
Copy link

It can be passed by adding your own NameIdFormat. For example:
samlSP.ServiceProvider.AuthnNameIDFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"

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

No branches or pull requests

3 participants