jitbit / AspNetSaml

Very simple SAML 2.0 consumer module for ASP.NET/C#
https://www.jitbit.com
Apache License 2.0
363 stars 117 forks source link

Help - Response SAML without NameID #82

Closed cidmacedo closed 1 year ago

cidmacedo commented 1 year ago

When I redirect do ADFS and user is logged, the adfs call me with this saml without nameID

<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_c32e65c3-9480-48f5-a53a-caaf8178ca6e" Version="2.0" IssueInstant="2023-07-02T14:25:26Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" AssertionConsumerServiceURL="xxxxxxxxxxxxxxxxx"

xxxxxxxxxxxxxxx urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport

How I can get nameID in this case ?

Thanks

alex-jitbit commented 1 year ago

You need to set up ADFS so it passes NameID, for example here's how you do it (scroll down to the item "6." https://support.jitbit.com/helpdesk/KB/View/13284380-configuring-saml--in-adfs-