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
cty is the content-type and encodes the version of the Access Token. Its value must be "twilio-fpa;v=1".
It would be nice not to have to implement JoseHeader for a custom type just to set this. I'm thinking an extra variant HeaderContentType::Custom(String) would be sufficient. If we want to ensure it's a properly formatted MIME type it could be mime::Mime instead but I feel like that's overkill.
The text was updated successfully, but these errors were encountered:
Generating JWTs for client API access to Twilio requires setting the
cty
field of the JWT header to a specific magic string: https://www.twilio.com/docs/iam/access-tokens#jwt-formatIt would be nice not to have to implement
JoseHeader
for a custom type just to set this. I'm thinking an extra variantHeaderContentType::Custom(String)
would be sufficient. If we want to ensure it's a properly formatted MIME type it could bemime::Mime
instead but I feel like that's overkill.The text was updated successfully, but these errors were encountered: