You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntDate is integer representation of UNIX origin time used in JSON Web Token(JWT). Key Vault REST API has an attribute class containing properties of type IntDate such as exp and nbf. However, IntDate is not supported in the AutoRest to convert the Unix time to DateTime which is consumable by the client side code. Is it possible to add IntDate support to AutoRest? This is similar to this issue.
@pomortaz Is there a specification somewhere for exactly what intDate is? The JsonConverter is nice, but we will need to implement this in multiple languages, so a specification of the format would be useful
According to JSON Web Token (JWT) draft, InDate (which is called NumericDate now) is "A JSON numeric value representing the number of seconds from 1970-01-01T00:00:00Z UTC until the specified UTC date/time, ignoring leap seconds."
IntDate is integer representation of UNIX origin time used in JSON Web Token(JWT). Key Vault REST API has an attribute class containing properties of type IntDate such as exp and nbf. However, IntDate is not supported in the AutoRest to convert the Unix time to DateTime which is consumable by the client side code. Is it possible to add IntDate support to AutoRest? This is similar to this issue.
To do so, we need to define a UnixTimeConverter that converts type of long to DateTime.
[JsonConverter(typeof (UnixTimeConverter))]
The text was updated successfully, but these errors were encountered: