Revert "OIDC endpoints: typed lambdas instead of Delegate-cast method groups"

This reverts commit 849c9e71fa.
This commit is contained in:
Meta Vens 2026-10-22 20:09:30 +02:00
commit abd12b30d2

View file

@ -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<IResult> AuthorizeAsync(HttpContext http, ICurrentBifrostActorAccessor actors)