I have two client apps both are integrated with Auth0- OpenID identity layer and build in Asp.net core 3.1, for Login we are using Universal Login method and custom domain. We are using common connection for all apps ( [Username-Password-Authentication]) but different auth0 application.
Client 1: “xyz-domain-com”
Auth0 - Application : xyz
Cookies : -domain-com
Client 2 : “abc-domain-com”
Auth0 - Application : abc
Cookies : -domain-com
We having trouble, when user open the app “xyz-domain-com” in a browser it ask for UL login and user successfully enter into that application but when they tried open another client application that’s in same domain but diff sub domain “abc-domain.-com” it again ask for login.
We are using cookie authentication that is shared between sub domains, but still need to put same credentials again and again.Did I miss any configuration ?
Code example
.AddCookie(options =>
{
options.LoginPath = new PathString(“/Auth/Login”);
options.Cookie.Domain = Configuration[“Auth0:CookieDomain”];
}).AddOpenIdConnect(“Auth0”, options =>
{
options.Authority = Configuration[“Auth0:Domain”];
options.ClientId = Configuration[“Auth0:ClientId”];
options.ClientSecret = Configuration[“Auth0:ClientSecret”];
So on…