Skip to content
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

Allow decoding of [String] JWK parameters #117

Open
ghost opened this issue Oct 17, 2018 · 0 comments
Open

Allow decoding of [String] JWK parameters #117

ghost opened this issue Oct 17, 2018 · 0 comments
Labels
bug Something is not working right help wanted We'd love for someone from the community to help out here

Comments

@ghost
Copy link

ghost commented Oct 17, 2018

Currently, we ignore (via #116) the JWK parameters X509CertificateChain and keyOperations because their type is [String]. This is because we only decode into a [String: String] dictionary at the moment. We should enable the decoding of String and [String] to be standard compliant. The relevant code is in RSAKeysCodable.swift and in the JWK types themselves e.g. in RSAPublicKey.swift.

Possible parameters and their types are listed in RFC-7517:

  • "kty": String
  • "use": String
  • "key_ops": [String]
  • "alg": String
  • "kid": String
  • "x5u": URI
  • "x5c": [String]
  • "x5t": String
  • "x5t#S256": String
@ghost ghost added bug Something is not working right help wanted We'd love for someone from the community to help out here JWK labels Oct 17, 2018
ghost pushed a commit that referenced this issue Oct 18, 2018
ghost pushed a commit that referenced this issue Oct 18, 2018
* Mention ignored JWK parameters in readme

* Add explicit link to #117 in readme
@ghost ghost removed the JWK label Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working right help wanted We'd love for someone from the community to help out here
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants