Kitura / Swift-JWT

JSON Web Tokens in Swift
Apache License 2.0
561 stars 110 forks source link

Not Swift 5.8 compatible #117

Open OurBigAdventure opened 1 year ago

OurBigAdventure commented 1 year ago

I'm having an issue building in Linux for Swift 5.8, the issue is related to the BlueRSA dependency, specifically the CryptorRSA.swift file. I suspect that there are more errors but this is all the compiler is showing at the moment.

I realize this isn't an issue for Swift-JWT, except that it is for anyone using it on Linux who wants to upgrade Swift. So just a heads up to the maintainers of this repo.

Also to note that BlueRSA has not been updated in 2 years, maybe it's time to switch over to Apple's swift-crypto library?

wassup- commented 1 year ago

@OurBigAdventure I replaced BlueRSA etc with Apple's Swift Crypto library. Can you check if my PR fixes things for you on Linux?

Please note that RSA support is currently missing in my PR.

advanc3dUA commented 8 months ago

I'm having an issue building in Linux for Swift 5.8, the issue is related to the BlueRSA dependency, specifically the CryptorRSA.swift file. I suspect that there are more errors but this is all the compiler is showing at the moment.

I realize this isn't an issue for Swift-JWT, except that it is for anyone using it on Linux who wants to upgrade Swift. So just a heads up to the maintainers of this repo.

Also to note that BlueRSA has not been updated in 2 years, maybe it's time to switch over to Apple's swift-crypto library?

Hey. Did you find the solution? I can't compile my Vapor project with SwiftJWT because of Swift 5.9.2 on my server. The only idea which I have is to roll back to one of the previous Swift versions but I don't know which one. Plus this looks kinda temporary workaround and not the real solution.

wassup- commented 8 months ago

@advanc3dUA You can check if my PR suits your needs.