summaryrefslogtreecommitdiff
path: root/Controllers/WeatherForecastController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Controllers/WeatherForecastController.cs')
-rw-r--r--Controllers/WeatherForecastController.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Controllers/WeatherForecastController.cs b/Controllers/WeatherForecastController.cs
index 801ee5e..f7fdcdf 100644
--- a/Controllers/WeatherForecastController.cs
+++ b/Controllers/WeatherForecastController.cs
@@ -1,8 +1,11 @@
using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Authentication.JwtBearer;
+using Microsoft.AspNetCore.Authorization;
namespace IdentityAPI.Controllers;
[ApiController]
+[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{