This commit is contained in:
rossmill76 committed 2026-03-23 15:05:57 +00:00
1 parent 2bfe914c8f
commit 4281924ee5
16 files changed
+369 -76

No files matched your search

+2
View File
@@ -71,6 +71,7 @@ if (!string.IsNullOrEmpty(googleSection["ClientId"]) && !string.IsNullOrEmpty(go
{
options.ClientId = googleSection["ClientId"]!;
options.ClientSecret = googleSection["ClientSecret"]!;
options.SignInScheme = IdentityConstants.ApplicationScheme;
});
}
@@ -168,6 +169,7 @@ app.MapGet("/api/auth/external-callback", async (
string? returnUrl) =>
{
returnUrl ??= "/";
var info = await signInManager.GetExternalLoginInfoAsync();
if (info is null)
return Results.Redirect("/login");