pobieranie tokenu

This commit is contained in:
Maciej Maciejewski 2024-10-24 11:28:22 +02:00
parent 9f395ac634
commit 034383cadf
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -4,7 +4,7 @@
},
"TokenConfig": {
"JwtSecKey": "omgi5Rf4tqg351GQwefw",
"JwtSecKey": "omgi5Rf4tqg351GQwefw1234567890123456",
"JwtExpireDays": 30,
"JwtIssuer": "http://api.graphcom.pl"
},