ComponentSpace

Forums



Username read by SAMLServiceProvider.ReceiveSSO is null or empty


Username read by SAMLServiceProvider.ReceiveSSO is null or empty

Author
Message
gfox
gfox
New Member
New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)

Group: Forum Members
Posts: 6, Visits: 41
Hi, 

We received the following response from the IdP and it seems legit to us (see attached for a larger version):


But when using the following API to process it, the returned userName is either null or empty. We're expecting to retrieve "[email protected]" as shown in the response above. 
Note that no exception is thrown either.

   
   SAMLServiceProvider.ReceiveSSO(httpApplication.Request, out isInResponseTo, out partnerIdP, out authnContext, out userName, out attributes, out targetUrl);


The version we are using is 2.8.8.0.

Any idea?



Attachments
SAML response.png (3 views, 103.00 KB)
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
I can't see any obvious issues from the screen capture.
Please enable SAML trace and send the generated log file to [email protected] mentioning your forum post.
https://www.componentspace.com/Forums/17/Enabing-SAML-Trace


Regards
ComponentSpace Development
gfox
gfox
New Member
New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)

Group: Forum Members
Posts: 6, Visits: 41
Thanks for your suggestion. Enabling the trace allowed me to verify that the NameId was actually read correctly.

I made a bad diagnosis: it was in fact one of the attributes value that was null, not the username, which makes sense looking at the response.

Nothing wrong the API, sorry for the hassle!

ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
No worries. I'm glad the SAML trace help.

Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search