No Cookies After Successful SignIn #25508
-
I have seen several issues which mirror some of the symptoms I see, but either the remedies do not work, or the environment does not match mine. So putting something here hopeful that someone can steer me into the proper fix. I'm building an auth server using Asp.net Core Identity and Identity Server 4 (v3.1.0). My use case fails in the browser after successfully logging in for both Azure AD and ASP.net Identity "types." Everything worked a month ago, but now this issue is present. Integration tests validate proper JWT tokens work just fine. Azure ADIt looks like my core issue is the auth cookie is getting "dropped" somewhere in the handshaking. For
Using External/Challenge Response
Asp.Net IdentityFor this login, everything succeeds, and appears fine when I am redirected to my MVC page.
However, the StartupI do not explicitly configure cookies anywhere in ConfigureServices services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
.AddAzureAD(options =>
{
options.ClientId = azureAdOptions.ClientId;
options.ClientSecret = azureAdOptions.TenantId;
options.Domain = this.AuthServerUrl;
options.Instance = $"{azureAdOptions.AadInstance}{azureAdOptions.TenantId}";
options.CallbackPath = openIdConnectOptions.CallbackPath;
}); Configure app.UseIdentityServer();
app.UseAuthentication();
app.UseAuthorization(); Runtime
I have tried numerous things from " What am I missing? What can I try next? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
SameSite=none without secure is the usual culprit. Can you share the full fiddler trace? |
Beta Was this translation helpful? Give feedback.
-
Attached is the |
Beta Was this translation helpful? Give feedback.
SameSite=none without secure is the usual culprit. Can you share the full fiddler trace?
Are you using https?
Are you using a proxy?