Skip to content

Commit

Permalink
Merge pull request #55 from 50c/dev
Browse files Browse the repository at this point in the history
close #47 
close #54
  • Loading branch information
brunobritodev committed Apr 19, 2024
2 parents 91e866a + 9ba566f commit e03f3b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/NetDevPack.Security.Jwt.Core/Model/Key.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public KeyMaterial(CryptographicKey cryptographicKey)

public JsonWebKey GetSecurityKey()
{
return JsonSerializer.Deserialize<JsonWebKey>(Parameters);
//problem here are default Serializer options. If these options don't have the property PropertyNameCaseInsensitive = true, the deserialization will fail.
//var jsonWebKey = JsonSerializer.Deserialize<JsonWebKey>(Parameters);
var jsonWebKey = JsonWebKey.Create(Parameters);
return jsonWebKey;
}

public void Revoke(string reason=default)
Expand Down

0 comments on commit e03f3b2

Please sign in to comment.