From 00acb66e39f7b178d58f3f0ec298aec73d7aced9 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 15 Nov 2022 21:52:57 -0600 Subject: AƱadida autenticaciĆ³n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controllers/WeatherForecastController.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Controllers/WeatherForecastController.cs') 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 { -- cgit v1.2.3