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