Open xanderdunn opened 3 years ago
Thanks, @xanderdunn. Initially, this library used Google's OAuth implementation, but I intentionally sacrificed Linux support to avoid third-party dependencies. If anyone would like to share thoughts on the topic, welcome to comment!
I think it's totally reasonable to use Apple and event SSWG incubating projects as dependencies, and we now have SwiftCrypto
We're in 2024, this project seems abandoned but I still use it in my projects and wanted to use it in one of my Vapor apps, which runs in a linux server.
Turns out the JWT part that depends on Security framework (macOS-only) can be replaced using JWTKit, which is already a dependency of Vapor. I could make it work.
For a while I run my own fork with few other modifications, but if people are interested (including @DnV1eX) I can prepare and make a PR here adding the linux support.
Currently, this project doesn't build on Linux. Using version 1.1.1:
Some of these errors could be resolved simply by changing
import Foundation
to:It looks like the authentication portions of it would need to be replaced by either CryptoSwift or google-auth-library-swift, both of which support Linux. The latter is Google's official library for authenticating with Google Cloud and may readily replace this functionality.