A WordPress plugin to configure and enable Sign In with Apple for existing WordPress users.
Important: This pugin is currently work in progress! Please don't use it on production sites.
-
Apple Developer Account ($99 per year) for registering your site with Apple.
-
Configured Sign In with Apple for the web -- new or existing App ID for iOS or macOS with "Sign In with Apple" capability enabled and a Service ID (such as
com.yourdomain.signinwithappleplugin) with "Sign In with Apple" service enabled. -
Specify the
Return URLas your WordPress login URL such ashttps://example.com/wp-login.php.
The plugin must be installed as a Composer dependency since it uses a third party package for parsing JSON Web Token (JWT) responses:
composer require kasparsd/sign-in-with-apple
-
Visit the site options at
https://example.com/wp-admin/options.phpand specify your Service ID (such ascom.yourdomain.applelogin) insiwa_plugin_service_id. -
Visit your WordPress profile
https://example.com/wp-admin/profile.phpand click on the "Sign In with Apple" button to associate your WordPress user with your Apple ID. -
Use the "Log In with Apple" button at the bottom of the WordPress login page to log-in using your Apple ID.
- Add
id_tokenvalidation based on the Apple public key. - Enable new user signup for WooCommerce customers.
- Apple currently doesn't include user name and email in their JWT
id_token. The only available field is the user ID in thesubfield.
Created by Kaspars Dambis.