Closed omsmith closed 7 years ago
This is on top of #35
I love this
So this does disposing of things. Need to figure out how/when this happens.
So JwtSecurityHandler
gets it when WriteToken
is called, but doesn't dispose of it or anything (Dispose
is protected
, so it wouldn't be able to anyway).
Seems we'll still need to track the Disposables
ourselves, which in KDev
is a possibility for RSASecurityKey
(https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/KDev/src/Microsoft.IdentityModel.Tokens/RsaSecurityKey.cs#L48), but not in the latest nuget.
JsonWebKey
/JsonWebKeySet
is a thing in IdentityModel.Tokens
now, https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/KDev/src/Microsoft.IdentityModel.Tokens/JsonWebKeySet.cs
So, as JsonWebKey
/JsonWebKeySet
are set up, we could use them for parsing.
JsonWebKey
implements SecurityKey
, and the AsymmetricSignatureProvider
will do the correct thing with it, but it would have to do the correct thing multiple times, and no way for us to cache it. Sad.
JsonWebKey
/JsonWebKeySet
from IdentityModel