From 034383cadf025f4a3ff31ac85d6d6139d4fd2b1c Mon Sep 17 00:00:00 2001 From: Maciej Maciejewski Date: Thu, 24 Oct 2024 11:28:22 +0200 Subject: [PATCH] pobieranie tokenu --- Controllers/ProductController.cs | 2 +- appsettings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/ProductController.cs b/Controllers/ProductController.cs index ec6b5d3..f1d03ba 100644 --- a/Controllers/ProductController.cs +++ b/Controllers/ProductController.cs @@ -166,7 +166,7 @@ namespace FirmTracker_Server.Controllers [HttpGet] [ProducesResponseType(200)] // Created [ProducesResponseType(400)] // Bad Request - [Authorize(Roles =Roles.User)] + [Authorize(Roles =Roles.Admin)] public IActionResult GetAllProducts() { var products = _productCrud.GetAllProducts(); diff --git a/appsettings.json b/appsettings.json index 52639ff..f9a565b 100644 --- a/appsettings.json +++ b/appsettings.json @@ -4,7 +4,7 @@ }, "TokenConfig": { - "JwtSecKey": "omgi5Rf4tqg351GQwefw", + "JwtSecKey": "omgi5Rf4tqg351GQwefw1234567890123456", "JwtExpireDays": 30, "JwtIssuer": "http://api.graphcom.pl" },