Loading

Errore "SAMLException: NameID element must be present as part of the Subject in the Response message, please enable it in the IDP configuration" durante l'autenticazione con SAML

Data pubblicazione: Aug 24, 2022
Descrizione
Durante un tentativo di autenticazione con SAML, potrebbe verificarsi il seguente errore:

SAMLException: NameID element must be present as part of the Subject in the Response message, please enable it in the IDP configuration. (SAMLException: l'elemento NameID deve essere presente come parte dell'oggetto nel messaggio di risposta, abilitalo nella configurazione IDP.)

Cause

NameID incluso nel blocco Subject dell'asserzione è richiesto dal protocollo SAML 2.0.
Risoluzione
Collabora con il tuo IdP per assicurarti che l'elemento NameId venga passato nel blocco Subject della risposta SAML.

Ad esempio, di seguito è riportato un blocco Subject che include NameID: 
<saml:Subject> 
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">John</saml:NameID> 
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"> 
<saml:SubjectConfirmationData Recipient="http://servername/wg/saml/SSO/index.html
NotOnOrAfter=
"date/time" 
InResponseTo=
"......."/> 
</saml:SubjectConfirmation> 
</saml:Subject> 
Numero articolo Knowledge

001473069

 
Caricamento
Salesforce Help | Article