Auth0 Home Blog Docs

Silent Authentication with SSO netcore2.1



SSO is working but prompts the user on redirect – The popup contains the users username and password so they just have to click OK to be signed into an application.

I would like to use silent authentication but I can’t find any NetCore2.1 examples that work and older Net samples for silent authentication are obsolete.

Does anyone know what I can add to the startup to redirect the user silently? I tried this but I don’t really understand what it is doing and it doesn’t work.

  OnRedirectToIdentityProvider = context =>
      if (context.Properties.Items.ContainsKey("connection"))
                        context.ProtocolMessage.SetParameter("connection", context.Properties.Items["connection"]);

       return Task.FromResult(0);
....logout events