This commit is contained in:
Jamie Rees 2020-10-26 20:58:54 +00:00
commit b796a5e101

View file

@ -136,7 +136,7 @@ namespace Ombi.Controllers.V1
};
claims.AddRange(roles.Select(role => new Claim("role", role)));
var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_tokenAuthenticationOptions.SecretKey));
var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(StartupSingleton.Instance.SecurityKey));
var creds = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);