Xabaril/AspNetCore.Diagnostics.HealthChecks

Unable to use Google Authentication with Healthchecks UI

Open

#1536 opened on Nov 11, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C# (3,776 stars) (737 forks)batch import
UIhelp wanted

Description

What happened: After adding

        services
            .AddHealthChecksUI()
            .AddInMemoryStorage();

and

 app.UseRouting()
       .UseEndpoints(config => config.MapHealthChecksUI());

to my Blazor application I am no longer able to authenticate using Google authentication.

What you expected to happen: I expected to continue to authenticate with Google. I expected MapHealthChecksUI would have no effect on my application's authentication.

How to reproduce it (as minimally and precisely as possible): Configure an application to use Google Authentication then add

 app
            .UseRouting()
            .UseEndpoints(config => config.MapHealthChecksUI());

and

        services
            .AddHealthChecksUI()
            .AddInMemoryStorage();

to program.cs, run the application and attempt to log in using Google Authentication.

Source code sample:

Anything else we need to know?:

When I attempt to authenticate I get: Access blocked: This app’s request is invalid You can’t sign in because this app sent an invalid request. Error 400: redirect_uri_mismatch

Environment:

  • .NET Core version:
    • 6.0.305
  • Healthchecks version:
    • AspNetCore.HealthChecks.UI 6.0.5
  • Operative system:
    • Windows 11 22H2 (Enterprise)
  • Others:

Contributor guide