#Bug in passing Lifetime property to GenerateToken
Audience is passed to GenerateToken instead of Lifetime.
This commit is contained in:
parent
d0c8ee57e6
commit
773710aeef
@ -559,7 +559,7 @@ namespace Oqtane.Controllers
|
|||||||
var secret = sitesettings.GetValue("JwtOptions:Secret", "");
|
var secret = sitesettings.GetValue("JwtOptions:Secret", "");
|
||||||
if (!string.IsNullOrEmpty(secret))
|
if (!string.IsNullOrEmpty(secret))
|
||||||
{
|
{
|
||||||
token = _jwtManager.GenerateToken(_tenantManager.GetAlias(), (ClaimsIdentity)User.Identity, secret, sitesettings.GetValue("JwtOptions:Issuer", ""), sitesettings.GetValue("JwtOptions:Audience", ""), int.Parse(sitesettings.GetValue("JwtOptions:Audience", "20")));
|
token = _jwtManager.GenerateToken(_tenantManager.GetAlias(), (ClaimsIdentity)User.Identity, secret, sitesettings.GetValue("JwtOptions:Issuer", ""), sitesettings.GetValue("JwtOptions:Audience", ""), int.Parse(sitesettings.GetValue("JwtOptions:Lifetime", "20")));
|
||||||
}
|
}
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user