ComponentSpace

Forums



Initiate and Assert happens in different domain


Initiate and Assert happens in different domain

Author
Message
Fiona
Fiona
New Member
New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)New Member (4 reputation)

Group: Awaiting Activation
Posts: 2, Visits: 29
Hi, can I use one domain to initiate sso but the other domain to assert sso response? 
I am using redis cache to save saml sessions, but I always receive a SamlProtocolException after assertion.

2021-07-07 01:12:20.088 +00:00 [ERR] Receiving an SSO response from a partner identity provider has failed.
ComponentSpace.Saml2.Exceptions.SamlProtocolException: An SP-initiated SAML response from xxx was received unexpectedly.
 at ComponentSpace.Saml2.SamlServiceProvider.CheckInResponseTo(String inResponseTo)
 at ComponentSpace.Saml2.SamlServiceProvider.ProcessSamlResponseAsync(XmlElement samlResponseElement, String relayState)
 at ComponentSpace.Saml2.SamlServiceProvider.ReceiveSsoAsync()

Thanks for help
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)ComponentSpace Development (3.9K reputation)

Group: Administrators
Posts: 2.8K, Visits: 8.5K
We use a cookie to keep track of the SAML session state. The cookie can be shared between subdomains but not separate domains.

By default the cookie's domain is not set so it applies to the current host. You can specify the domain in the application's Startup.ConfigureServices.


using ComponentSpace.Saml2.Session;
using ComponentSpace.Saml2.Bindings;

services.Configure<CookieSsoSessionStoreOptions>(options =>
{
  options.CookieOptions = new CookieOptions()
  {
   Domain = "xyz.com"
  };
});




Regards
ComponentSpace Development
GO


Similar Topics


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


Password:


Social Logins

Select a Forum....









Forums, Documentation & Knowledge Base - ComponentSpace


Search