Closed stuartbain closed 5 years ago
Thanks! This was a bug in the JOSE adapter, and fixed in master. I'm reopening this issue as it would be best if the JWT is verified.
The Apple strategy does the full OAuth 2 flow so verification of the JWT isn't strictly required, but would be nice to have. I'll get back to this later. I've released v0.1.4
🚀
When using the Assent.JWTAdapter.JOSE for Assent.Strategy.Apple, the following error occurs:
The error is caused by a nil parameter being passed for the public key in the following line: https://github.com/pow-auth/assent/blob/50f49b4e6ab557d935bffffac53e77245cfcdf64/lib/assent/strategies/apple.ex#L107
I was able to work around the issue by providing the Apple Public Key from https://appleid.apple.com/auth/keys as a configuration parameter as follows:
with the :public_key specified in my config as follows:
Hard coding the Apple public key is just a work around to get me up and running. I notice that the Ueberauth Apple strategy fetches the Apple public key during the verification phase and I guess the Assent Apple strategy should do the same?