vapor / jwt-kit

🔑 JSON Web Token (JWT) signing and verification (HMAC, ECDSA, EdDSA, RSA, PSS) with support for JWS and JWK
https://api.vapor.codes/jwtkit/documentation/jwtkit/
MIT License
191 stars 49 forks source link

Switch to SwiftCrypto initialising RSA keys #179

Open ptoffy opened 1 month ago

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 80.32787% with 12 lines in your changes missing coverage. Please review.

Project coverage is 81.91%. Comparing base (0601ef5) to head (5d03c50).

Files with missing lines Patch % Lines
Sources/JWTKit/JWK/JWK.swift 22.22% 7 Missing :warning:
Sources/JWTKit/RSA/RSA.swift 79.16% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #179 +/- ## ========================================== - Coverage 83.28% 81.91% -1.37% ========================================== Files 60 55 -5 Lines 1424 1272 -152 ========================================== - Hits 1186 1042 -144 + Misses 238 230 -8 ``` | [Files with missing lines](https://app.codecov.io/gh/vapor/jwt-kit/pull/179?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Δ | | |---|---|---| | [Sources/JWTKit/ECDSA/ECDSA.swift](https://app.codecov.io/gh/vapor/jwt-kit/pull/179?src=pr&el=tree&filepath=Sources%2FJWTKit%2FECDSA%2FECDSA.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9KV1RLaXQvRUNEU0EvRUNEU0Euc3dpZnQ=) | `86.79% <100.00%> (ø)` | | | [Sources/JWTKit/ECDSA/ECDSAKeyTypes.swift](https://app.codecov.io/gh/vapor/jwt-kit/pull/179?src=pr&el=tree&filepath=Sources%2FJWTKit%2FECDSA%2FECDSAKeyTypes.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9KV1RLaXQvRUNEU0EvRUNEU0FLZXlUeXBlcy5zd2lmdA==) | `100.00% <ø> (ø)` | | | [Sources/JWTKit/JWK/JWKSigner.swift](https://app.codecov.io/gh/vapor/jwt-kit/pull/179?src=pr&el=tree&filepath=Sources%2FJWTKit%2FJWK%2FJWKSigner.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9KV1RLaXQvSldLL0pXS1NpZ25lci5zd2lmdA==) | `81.05% <100.00%> (+2.73%)` | :arrow_up: | | [Sources/JWTKit/Utilities/Base64URL.swift](https://app.codecov.io/gh/vapor/jwt-kit/pull/179?src=pr&el=tree&filepath=Sources%2FJWTKit%2FUtilities%2FBase64URL.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9KV1RLaXQvVXRpbGl0aWVzL0Jhc2U2NFVSTC5zd2lmdA==) | `100.00% <ø> (ø)` | | | [Sources/JWTKit/RSA/RSA.swift](https://app.codecov.io/gh/vapor/jwt-kit/pull/179?src=pr&el=tree&filepath=Sources%2FJWTKit%2FRSA%2FRSA.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9KV1RLaXQvUlNBL1JTQS5zd2lmdA==) | `71.79% <79.16%> (-2.12%)` | :arrow_down: | | [Sources/JWTKit/JWK/JWK.swift](https://app.codecov.io/gh/vapor/jwt-kit/pull/179?src=pr&el=tree&filepath=Sources%2FJWTKit%2FJWK%2FJWK.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9KV1RLaXQvSldLL0pXSy5zd2lmdA==) | `28.71% <22.22%> (-1.19%)` | :arrow_down: |