Skip to content

Commit 34dc4f5

Browse files
Don't make the same mistake twice
1 parent d750ff6 commit 34dc4f5

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/Controllers/WeatherForecastController.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
namespace Company.WebApplication1.Controllers
1212
{
13-
#if (!NoAuth)
14-
[Authorize]
15-
#endif
1613
[ApiController]
1714
[Route("[controller]")]
1815
public class WeatherForecastController : ControllerBase

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/Startup.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ public Startup(IConfiguration configuration)
2424
public void ConfigureServices(IServiceCollection services)
2525
{
2626
services.AddControllersWithViews();
27-
#if (OrganizationalAuth || IndividualAuth)
28-
services.AddRazorPages();
29-
#endif
3027

3128
// In production, the React files will be served from this directory
3229
services.AddSpaStaticFiles(configuration =>
@@ -60,13 +57,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
6057

6158
app.UseRouting();
6259

63-
#if (IndividualLocalAuth)
64-
app.UseAuthentication();
65-
app.UseIdentityServer();
66-
#endif
67-
#if (!NoAuth)
68-
app.UseAuthorization();
69-
#endif
7060
app.UseEndpoints(endpoints =>
7161
{
7262
endpoints.MapControllerRoute(

0 commit comments

Comments
 (0)