From abd12b30d23520cf646b52c9ca0f3585a42ecbbb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 20:09:30 +0200 Subject: [PATCH] Revert "OIDC endpoints: typed lambdas instead of Delegate-cast method groups" This reverts commit 849c9e71fa5d7e1a4ab3da0b39e69ed9b1f9dfd6. --- src/Bifrost.Web/Features/Oidc/OidcEndpoints.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bifrost.Web/Features/Oidc/OidcEndpoints.cs b/src/Bifrost.Web/Features/Oidc/OidcEndpoints.cs index afb2fa2..f282013 100644 --- a/src/Bifrost.Web/Features/Oidc/OidcEndpoints.cs +++ b/src/Bifrost.Web/Features/Oidc/OidcEndpoints.cs @@ -24,9 +24,9 @@ public static class OidcEndpoints public static void MapBifrostOidc(this IEndpointRouteBuilder app) { - app.MapMethods(OidcServiceCollectionExtensions.AuthorizationPath, ["GET", "POST"], (HttpContext http, ICurrentBifrostActorAccessor actors) => AuthorizeAsync(http, actors)).AllowAnonymous(); - app.MapPost(OidcServiceCollectionExtensions.TokenPath, (HttpContext http) => ExchangeAsync(http)).AllowAnonymous(); - app.MapMethods(OidcServiceCollectionExtensions.UserInfoPath, ["GET", "POST"], (HttpContext http) => UserInfoAsync(http)).AllowAnonymous(); + app.MapMethods(OidcServiceCollectionExtensions.AuthorizationPath, ["GET", "POST"], (Delegate)AuthorizeAsync).AllowAnonymous(); + app.MapPost(OidcServiceCollectionExtensions.TokenPath, (Delegate)ExchangeAsync).AllowAnonymous(); + app.MapMethods(OidcServiceCollectionExtensions.UserInfoPath, ["GET", "POST"], (Delegate)UserInfoAsync).AllowAnonymous(); } private static async Task AuthorizeAsync(HttpContext http, ICurrentBifrostActorAccessor actors)