Revert "OIDC endpoints: typed lambdas instead of Delegate-cast method groups"
This reverts commit 849c9e71fa.
This commit is contained in:
parent
a6b9bd00e6
commit
abd12b30d2
1 changed files with 3 additions and 3 deletions
|
|
@ -24,9 +24,9 @@ public static class OidcEndpoints
|
||||||
|
|
||||||
public static void MapBifrostOidc(this IEndpointRouteBuilder app)
|
public static void MapBifrostOidc(this IEndpointRouteBuilder app)
|
||||||
{
|
{
|
||||||
app.MapMethods(OidcServiceCollectionExtensions.AuthorizationPath, ["GET", "POST"], (HttpContext http, ICurrentBifrostActorAccessor actors) => AuthorizeAsync(http, actors)).AllowAnonymous();
|
app.MapMethods(OidcServiceCollectionExtensions.AuthorizationPath, ["GET", "POST"], (Delegate)AuthorizeAsync).AllowAnonymous();
|
||||||
app.MapPost(OidcServiceCollectionExtensions.TokenPath, (HttpContext http) => ExchangeAsync(http)).AllowAnonymous();
|
app.MapPost(OidcServiceCollectionExtensions.TokenPath, (Delegate)ExchangeAsync).AllowAnonymous();
|
||||||
app.MapMethods(OidcServiceCollectionExtensions.UserInfoPath, ["GET", "POST"], (HttpContext http) => UserInfoAsync(http)).AllowAnonymous();
|
app.MapMethods(OidcServiceCollectionExtensions.UserInfoPath, ["GET", "POST"], (Delegate)UserInfoAsync).AllowAnonymous();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async Task<IResult> AuthorizeAsync(HttpContext http, ICurrentBifrostActorAccessor actors)
|
private static async Task<IResult> AuthorizeAsync(HttpContext http, ICurrentBifrostActorAccessor actors)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue