Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Sign in with Apple third party provider #808

wants to merge 1 commit into
base: master



This comment has been minimized.

Copy link

AndreiIgna commented Oct 30, 2019

The League OAuth2 Client supports PHP >= 5.6, but this provider does not. Saw the dependency requires at least 7.2

Unfortunately there's still websites using PHP lower than 7.2. I'm using OAuth 2 Client and providers in a WordPress plugin, and these sites are really slow to update their servers.. Is there a way to make Apple Sign in provider be compatible with PHP 5.6?


This comment has been minimized.

Copy link

patrickbussmann commented Oct 30, 2019

I already made it 7.1 compatible, @AndreiIgna 😅

The main problem here is the JWT Generation which we need for Apple's client_secret.
Apple use's a Elliptic Curve Digital Signature Algorithm (ECDSA) with the P-256 curve and the SHA-256 hash algorithm.
There are many users which have invalid_client problems because they not generating this client_secret in the right way.
As you can read here:
For example (NodeJS):
Or (PHP):

I can check if I can build a own implementation of this generation and hope that it's usable for PHP 5.6. But for now this library is the only one I find.
I already checked few others but none works.

Similar problems:

I'll try this soon:
Maybe it's working. Then we are compatible with 5.6.

Let's hope.


This comment has been minimized.

Copy link

patrickbussmann commented Oct 31, 2019

OK @AndreiIgna I was successfull.
Travis is building 0.2.0 with PHP 5.6 successfully. 🎉

So it's now fully compatible with PHP 5.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.