-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsonWebKey from the Library is not compliant with IETF #16155
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
@heaths: I'm not sure if this is better routed to the service team. Would you be so kind as to triage and redirect if needed? |
Those properties are serialized according to the spec, but have different names across our SDKs following idiomatic language conventions. For .NET:
Other key parameters like Have you found a case where properties are not serialized to or from the Key Vault service correctly? |
Which I can understand, but when I convert the Azure.Security.KeyVault.Keys.JsonWebKey object to Json, I expect the JSON produced to be IETF compliant. So with properties name KeyType, Id, KeyOps in the JSON it is not a IETF compliant JWK. |
How are you converting it? Note we don't currently support serializing the JWK outside the SDK. When de/serialized within the SDK (like importing to or getting a key from Key Vault), then JWK is formatted correctly. |
If I am not able to get a IETF compliant JSON out of the JsonWebKey object I am not going call it as IETF compliant. The previous library Microsoft.Azure.KeyVault.WebKey ToString() method used to produce JSON which was IETF compliant. This new library Azure.Security does not exhibit the same behavior - https://docs.microsoft.com/en-gb/dotnet/api/microsoft.azure.keyvault.webkey.jsonwebkey.tostring?view=azure-dotnet-legacy#Microsoft_Azure_KeyVault_WebKey_JsonWebKey_ToString I was able to do
which does not work the same way in this new library, when I do
|
Hi @maxonweb. Thank you, for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
Hi @maxonweb. There was a mistake and this issue was unintentionally flagged as a stale pull request. The label has been removed and the issue will remain active; no action is needed on your part. Apologies for the inconvenience. |
Will add a |
* Support serializing JWK using RFC 7517 Resolves #16155 * Make JsonWebKeyConverter internal
Question:
Azure.Security.KeyVault.Keys.JsonWebKey returned from the Library as per https://docs.microsoft.com/en-us/dotnet/api/azure.security.keyvault.keys.keyvaultkey.key?view=azure-dotnet does not have kty, kid, key_ops properties for e.g.,
IETF Link: https://tools.ietf.org/html/rfc7517
The text was updated successfully, but these errors were encountered: