diff options
author | HombreLaser <sebastian-440@live.com> | 2022-11-15 21:52:57 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-11-15 21:52:57 -0600 |
commit | 00acb66e39f7b178d58f3f0ec298aec73d7aced9 (patch) | |
tree | b2340ca37d815a4da9870c3ecd483e8dbcf95a44 /Controllers/WeatherForecastController.cs | |
parent | 820c3a882c60127338293c1eee4059b2dfd535df (diff) |
Añadida autenticación
Diffstat (limited to 'Controllers/WeatherForecastController.cs')
-rw-r--r-- | Controllers/WeatherForecastController.cs | 3 |
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 { |