Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Linux support #5

Open
fotiDim opened this issue Aug 29, 2018 · 3 comments
Open

Linux support #5

fotiDim opened this issue Aug 29, 2018 · 3 comments

Comments

@fotiDim
Copy link

fotiDim commented Aug 29, 2018

I need to create MusicKit tokens on Linux (through Vapor). Is there any chance this library supports Linux?

@ethanhuang13
Copy link
Owner

Thanks for asking.

CupertinoJWT is based on Apple's Security and CommonCrypto frameworks and is intentionally only supports Apple platforms. Why, because I don't use Swift on Linux, and there are solutions for Linux.

For example, although the Vapor community removed ECDSA JWT support in the earlier version, I believe they are working on adding ECDSA support back on the newest version.

I'll leave this issue opened since this question might be frequently asked.

@Andrew-Lees11
Copy link

@fotiDim
If you still need es256 on Linux, Swift-JWT has now has cross platform support for signing and verifying.

@OurBigAdventure
Copy link

I'll bring this back up again, Kitura is dead so Swift-JWT will be as well.

Apple has released SwiftCrypto which is an open source version of CryptoKit which also supports Linux. Could that be the missing piece that could bring CupertinoJWT to the server side?

I have tried every JWT package I can find and the only one that I can get to work is this one. The others are so overly complex to use they are useless.

My last resort is to install a Python library and have Swift call out for token generation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants