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 (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)

Group: Forum Members
Posts: 4, Visits: 25
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 "mi..@...com" 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 (2 views, 103.00 KB)
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)

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


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

Group: Forum Members
Posts: 4, Visits: 25
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 (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)

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

Regards
ComponentSpace Development
GO


Similar Topics


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


Password:


Social Logins

Select a Forum....









ComponentSpace Forums


Search