nov / json-jwt

JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby
MIT License
299 stars 81 forks source link

Add [dq, dp, qi] attributes to jwk for compatibility with other libs #40

Closed InformatiQ closed 8 years ago

InformatiQ commented 8 years ago

Add [dq, dp, qi] attributes to jwk for compatibility with other libs that require them such as the .NET jwk libs

nov commented 8 years ago

thanks

nov commented 8 years ago

BTW, which .NET jwk library do you use?

ziaulrehman40 commented 4 years ago

I am not getting these extra params when i do:

key = OpenSSL::PKey::RSA.generate(2048)
key.public_key.to_jwk(kid: Time.now.utc.iso8601).to_json

Am i missing something?

nov commented 4 years ago

Because it's not a private key.

ziaulrehman40 commented 4 years ago

Yeah i am sorry, i got confused by these instructions: https://github.com/instructure/canvas-lms/blob/master/config/dynamic_settings.yml.example#L91

The key already there has all these extra values but the one I was generating with their instructions was missing these values. IDK if i should put key.public_key.to_jwk's value in there or key.to_jwk's value.

Anyway, thank you for your prompt response.