Skip to content

Commit

Permalink
fix: jwe tstes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobritodev committed Aug 31, 2021
1 parent d56a552 commit 38f5f54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NetDevPack.Security.Jwt/Jwk/JwkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ private JsonWebKey GenerateHMAC(Algorithm jwsAlgorithms)
private JsonWebKey GenerateAES(Algorithm jwsAlgorithms)
{
var key = CryptoService.CreateAESSecurityKey(jwsAlgorithms);

var jwk = JsonWebKeyConverter.ConvertFromSymmetricSecurityKey(new SymmetricSecurityKey(key.Key));
jwk.KeyId = CryptoService.CreateUniqueId();
return jwk;
Expand Down

0 comments on commit 38f5f54

Please sign in to comment.