I got SAML setup using our onsite ADFS server. When trying to log into the on-prem help desk via SAML I get the error "Error processing SAML Response". In the web server logs i see:
System.NullReferenceException:
Object reference not set to an instance of an object.
at Saml.Response.GetNameID()
at HelpDesk.Controllers.SamlController.Consume()
This is the atrributestatement that the site gets after the user attempts to log in:
<AttributeStatement>
<Attribute Name="NameID">
<AttributeValue>cabbs</AttributeValue>
</Attribute>
<Attribute Name="User.email">
<AttributeValue>cabbs@xxxx.us</AttributeValue>
</Attribute>
<Attribute Name="FirstName">
<AttributeValue>Chad</AttributeValue>
</Attribute>
<Attribute Name="LastName">
<AttributeValue>Abbs</AttributeValue>
</Attribute>
</AttributeStatement>
Not sure what I may be missing to get this working.
Sometimes with ADFS responses the NameID element is simply missing from the Subject XML element in the Response you send to our server. The most probable cause for that is NameID is not properly set up as an "Outgoing Claim Type" in a "Claims Rule".
Try these steps: