kylef / JSONWebToken.swift

Swift implementation of JSON Web Token (JWT).
http://jwt.io
BSD 2-Clause "Simplified" License
763 stars 225 forks source link

Support for ES256 signature #104

Open blackarcanis opened 6 years ago

blackarcanis commented 6 years ago

Hi, Seems useful to support ES256, Apple require it for Apple Music API => https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/AppleMusicWebServicesReference/SetUpWebServices.html#//apple_ref/doc/uid/TP40017625-CH2-SW1

ricocrescenzio95 commented 6 years ago

Still nothing?

ethanhuang13 commented 6 years ago

If you want to sign Apple's JWT on iOS/macOS, you could also try CupertinoJWT, which was pre-released recently. I've wrote it because I couldn't find a solution for creating JWT used for Apple's server APIs on iOS/macOS.

jonblatho commented 5 years ago

This project is seemingly no longer being maintained by its owner, but IBM’s Swift-JWT supports ES256 signing and verifying on Apple platforms and Linux, and it is an excellent replacement in my experience.

ETA: I’ve used Swift-JWT to connect to APNS, so it should also work for Apple Music.