ComponentSpace

Forums



OnSAMLResponseReceived method called repeatedly for every SAML claim


OnSAMLResponseReceived method called repeatedly for every SAML claim

Author
Message
markwilson66
markwilson66
New Member
New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)

Group: Forum Members
Posts: 3, Visits: 9
As the Service Provider, we've implemented AbstractSAMLObserver.  This has allowed us to see and log the actual claim as it comes into our application.
The problem is that every authentication from the identity provider results in OnSAMLResponseReceived being called dozens if not hundreds of times within a second.  The SAMLResponse received is identical in all calls.
Is this the way it is supposed to work?  It's very noisy within our log system and making real issues hard to identify.

Thanks!
Mark
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
Hi Mark,

OnSAMLResponseReceived should only be called once per SAML response.

Is it possible your implementation has been registered multiple times (ie multiple calls to SAMLObservable.Subscribe)?

Regards
ComponentSpace Development
markwilson66
markwilson66
New Member
New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)New Member (5 reputation)

Group: Forum Members
Posts: 3, Visits: 9
ComponentSpace - 11/22/2023
Hi Mark,

OnSAMLResponseReceived should only be called once per SAML response.

Is it possible your implementation has been registered multiple times (ie multiple calls to SAMLObservable.Subscribe)?

I have it setup as a Singleton in my SAML service when the service initially loads but I suppose it may be possible.
Thanks you for the advice, I'll investigate further.
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
If there's still an issue, please enable SAML trace and send the generated log file as an email attachment to [email protected] mentioning your forum post.

https://www.componentspace.com/Forums/17/Enabing-SAML-Trace
 

Regards
ComponentSpace Development
GO


Similar Topics


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


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search