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)