ComponentSpace

Forums



GetPartnerIdentityProviderConfigurationAsync: configurationName is sometime null or empty


GetPartnerIdentityProviderConfigurationAsync: configurationName is...

Author
Message
BaptisteT
BaptisteT
New Member
New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)

Group: Awaiting Activation
Posts: 2, Visits: 7
Hello,

We now use ComponentSpace SAML2 library for a while, first in .Net and now in .Net Core (.Net 6).

We have identified in this one an issue in production server we cannot manage to understand or identify the root cause.

We have a multitenant product, meaning that multiple configurations can be configured by our customers. For that we have override the AbstractSamlConfigurationResolver.

In our CustomSamlConfigurationResolver, the method GetPartnerIdentityProviderConfigurationAsync(string configurationName, string partnerName) sometime get an empty configurationName (null). We rely on this configurationName to determine which configuration needs to be selected from our database to provide all relevant information in the PartnerIdentityProviderConfiguration object (result of the method).

Why, from time to time, randomly, and not for all users, the configurationName could be empty/null?

Thank you for your assistance.
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
We pass into the configuration resolver whatever value has been set using the SetConfigurationNameAsync method.

Is it possible this method isn’t being called sometimes which is why the configurationName parameter is null?

When do you call SetConfigurationNameAsync? Is it immediately before any other SAML API calls?

Could you add a check in your code to ensure SetConfigurationNameAsync is being called and the value being passed in is not null?

If you can reproduce the issue, please enable SAML trace and send the generated log file as an email attachment to [email protected].

https://www.componentspace.com/forums/7936/Enabling-SAML-Trace


Regards
ComponentSpace Development
BaptisteT
BaptisteT
New Member
New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)

Group: Awaiting Activation
Posts: 2, Visits: 7
ComponentSpace - 9/19/2022
We pass into the configuration resolver whatever value has been set using the SetConfigurationNameAsync method.

Is it possible this method isn’t being called sometimes which is why the configurationName parameter is null?

When do you call SetConfigurationNameAsync? Is it immediately before any other SAML API calls?

Could you add a check in your code to ensure SetConfigurationNameAsync is being called and the value being passed in is not null?

If you can reproduce the issue, please enable SAML trace and send the generated log file as an email attachment to [email protected].

https://www.componentspace.com/forums/7936/Enabling-SAML-Trace

This topic can be closed, we managed to fix the issue. It was a mismatch of cookies on the end-user browser: they had the previous cookie still live. Removing it solved the issue.
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
Thanks for the update.

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