.net 6 minimal api authorization net 6

53

.net 6 minimal api authorization net 6 -

app.MapGet(“/AuthorizedResource”, (Func<string>)(
[Authorize] () => “Action Succeeded”)
).Produces(StatusCodes.Status200OK)
.WithName(“Authorized”).WithTags(“Accounts”).RequireAuthorization();

Comments

Submit
0 Comments