aboutsummaryrefslogtreecommitdiff
path: root/API/Service/UserService.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-12-13 10:34:08 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-12-13 10:34:08 +0200
commit01bb7729d76274ec6227fc725867c97159c84332 (patch)
tree220a84f6107c57df072e180cd14b63979057d8a5 /API/Service/UserService.cs
parent3f9d6457360bba2eef24c013c5ba40fa92bf8cc7 (diff)
downloadDevHive-01bb7729d76274ec6227fc725867c97159c84332.tar
DevHive-01bb7729d76274ec6227fc725867c97159c84332.tar.gz
DevHive-01bb7729d76274ec6227fc725867c97159c84332.zip
Fixed login token security algorithm
Diffstat (limited to 'API/Service/UserService.cs')
-rw-r--r--API/Service/UserService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/API/Service/UserService.cs b/API/Service/UserService.cs
index d480bec..a693a93 100644
--- a/API/Service/UserService.cs
+++ b/API/Service/UserService.cs
@@ -47,7 +47,7 @@ namespace API.Service
new Claim(ClaimTypes.Role, user.Role) // Authorize user by role
}),
Expires = DateTime.UtcNow.AddDays(7),
- SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.Sha512)
+ SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha512Signature)
};
var tokenHandler = new JwtSecurityTokenHandler();