pobieranie tokenu
This commit is contained in:
parent
9f395ac634
commit
034383cadf
@ -166,7 +166,7 @@ namespace FirmTracker_Server.Controllers
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
[ProducesResponseType(200)] // Created
|
[ProducesResponseType(200)] // Created
|
||||||
[ProducesResponseType(400)] // Bad Request
|
[ProducesResponseType(400)] // Bad Request
|
||||||
[Authorize(Roles =Roles.User)]
|
[Authorize(Roles =Roles.Admin)]
|
||||||
public IActionResult GetAllProducts()
|
public IActionResult GetAllProducts()
|
||||||
{
|
{
|
||||||
var products = _productCrud.GetAllProducts();
|
var products = _productCrud.GetAllProducts();
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
"TokenConfig": {
|
"TokenConfig": {
|
||||||
"JwtSecKey": "omgi5Rf4tqg351GQwefw",
|
"JwtSecKey": "omgi5Rf4tqg351GQwefw1234567890123456",
|
||||||
"JwtExpireDays": 30,
|
"JwtExpireDays": 30,
|
||||||
"JwtIssuer": "http://api.graphcom.pl"
|
"JwtIssuer": "http://api.graphcom.pl"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user