Search Results :

×

Configure Apple Single Sign-On (SSO) with OAuth for WordPress

OAuth & OpenID Connect Single Sign-On (SSO) plugin for WordPress enables secure login into WordPress using Apple as OAuth and OpenID Connect provider. You can also configure the plugin using different custom providers and standard IdPs. It supports advanced Single Sign-On (SSO) features such as user profile Attribute mapping, Role mapping, etc. Here we will go through a guide to configure SSO between WordPress and Apple. By the end of this guide, users should be able to login to WordPress from Apple. To know more about other features we provide in the OAuth Single Sign-On (OAuth & OpenID Connect Client) plugin for WP, you can click here.

  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a OAuth Single Sign On (SSO) Plugin for WordPress and click on Install Now.
  • Once installed click on Activate.

Configure Apple SSO (Single Sign-On) - Login to Apple

Configure Apple SSO (Single Sign-On) - Create Apple Account

  • Click on Certificates, Identifiers & Profiles tab.
Configure Apple SSO (Single Sign-On) - Certificates, Identifiers and Profiles

  • In the left menu click on Identifiers and after that click on the Plus Icon (blue color). Click on Continue for the next 2 pages.
Configure Apple SSO (Single Sign-On) - User Identifiers

  • Enter Description and Bundle ID for the App ID. (The Bundle ID should be in reverse-dns style string.)
Configure Apple SSO (Single Sign-On) - App Description

  • In the Capabilities section scroll down and select sign with apple and click on Edit link.
Configure Apple SSO (Single Sign-On) - Capabilities and Enable as Primary App Id

  • Select Enable as a primary App Id and click on Save. Click on Continue and then click on Register.
Configure Apple SSO (Single Sign-On) - Primary App

  • In the right corner click on Continue and after that Register button.
  • Again click the Plus icon (blue color). Select Service IDs and click on Continue.
Configure Apple SSO (Single Sign-On) - Plus Icon

  • Enter Description and Identifier (Identifier would be your client id), and click on the Continue and after that Register button.
Configure Apple SSO (Single Sign-On) - Description and Client ID

  • Click on Keys tab from the left menu. Click on the Plus icon to register a new key.
Configure Apple SSO (Single Sign-On) - Register a New Key

  • Give your Key a name, and select Sign In with Apple and click on Configure button.
Configure Apple SSO (Single Sign-On) - Configure Key

  • Select your Primary Id and click on the Save button and after that at the right corner click on Continue and Register button.
Configure Apple SSO (Single Sign-On) - Register App

  • Click on the Download button, once the key is downloaded click on the Done button.
Configure Apple SSO (Single Sign-On) - Download Key

  • In the left menu click on Identifiers and the right top click on App IDs.
Configure Apple SSO (Single Sign-On) - Select App Id

  • Click on Service IDs from the drop down menu.
Configure Apple SSO (Single Sign-On) - Select Service IDs

  • Select your Service Id from the list.
Configure Apple SSO (Single Sign-On) - Select Service Id

  • Select Sign In with Apple and click on Configure button.
Configure Apple SSO (Single Sign-On) - Configure App

  • Select the Primary App Id from the drop down, and enter the Domain and Redirect URL in Domains and Subdomains and Return URLs respectively and click on the Next button (You will get the Domain name and Redirect URL from the miniOrange plugin).
Configure Apple SSO (Single Sign-On) - Redirect URL

  • Verify the details and click on the Done button. After that at the right corner click on the Continue button.
  • Copy the Identifier value and click on the Save button.
Configure Apple SSO (Single Sign-On) - App Id and Secret

  • Enter the Identifier value in the Client ID and copy the downloaded key value in Client secret of the miniOrange OAuth Client plugin.

  • Download the Ruby installer from the following link https://rubyinstaller.org/downloads/ and then install it.
  • Search for the Start command prompt with ruby, open the ruby command prompt and install the JWT gem by running the following command on the command line: gem install JWT.
  • Copy the below code in a file and save the file with the .rb extension. Keep this .rb file and downloaded .p8 file in the same folder.
  • Enter the name of downloaded file example= "key.P8", key_id , client_id, team_id in the code
  • Open Ruby command prompt and run the above code using the following command ruby filename.rb
  • require 'jwt'key_file = 'key.P8'
    team_id = ''
    client_id = ''
    key_id = ''
    ecdsa_key = OpenSSL::PKey::EC.new IO.read key_file
    headers = {
    'kid' => key_id
    }
    claims = {
    'iss' => team_id,
    'iat' => Time.now.to_i,
    'exp' => Time.now.to_i + 86400*180,
    'aud' => 'https://appleid.apple.com',
    'sub' => client_id,
    }
    token = JWT.encode claims, ecdsa_key, 'ES256', headers
    puts token
  • You will get your secret key. Copy the secret key.
Configure Apple SSO (Single Sign-On) - Apple Secret Key


  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
Configure Apple SSO (Single Sign-On) - Select Application

  • Choose your Application from the list of OAuth / OpenID Connect Providers, Here Apple.
Configure Apple SSO (Single Sign-On) - Select Application

  • After selecting the provider copy the Callback URL which needs to be configured in OAuth Provider's SSO application Configuration.
  • Enter the Client Credentials like Client ID & Client Secret which you will get from the Apple SSO application.
  • Please refer to the table below for details and configure the Scope & Endpoints for Ping Federate in the plugin.
Scope: email
Authorize Endpoint: https://appleid.apple.com/auth/authorize?response_mode=form_post
Access Token Endpoint: https://appleid.apple.com/auth/token
  • Click on Next.
Configure Apple SSO (Single Sign-On) - Click Next

  • Verify the configuration details and click on Finish to save the configuration.
Configure Apple SSO (Single Sign-On) - Select Application

You have successfully configured WordPress as OAuth Client for achieving Apple with WordPress for user authentication.

  • Go to Configure OAuth tab and search your application name to add a new client application into your website, Here Apple.
Configure Apple SSO (Single Sign-On) - Select Application

  • Configure App Name, Client ID, Client Secret from Apple SSO application.
Scope: email
Authorize Endpoint: https://appleid.apple.com/auth/authorize?response_mode=form_post
Access Token Endpoint: https://appleid.apple.com/auth/token
Configure Apple SSO (Single Sign-On) - Application Details

  • Choose your Grant Type from the list of options & Click on Save Settings to save the configuration.
Configure Apple SSO (Single Sign-On) - Click Save Settings

You have successfully configured WordPress as OAuth Client for achieving Apple with WordPress for user authentication.


  • User Attribute Mapping is mandatory for enabling users to successfully login into WordPress. We will be setting up user profile attributes for WordPress using below settings.

Finding user attributes:

  • Go to Configure OAuth tab. Scroll down and click on Test Configuration.
Configure Apple SSO (Single Sign-On) - Test Configuration

  • You will see all the values returned by your OAuth Provider to WordPress in a table.
Configure Apple SSO (Single Sign-On) - Test Configuration Result

  • Once you see all the values in Test Configuration, go to Attribute / Role Mapping tab, you will get the list of attributes in the dropdowns.
Configure Apple SSO (Single Sign-On) - Attribute / Role Mapping


  • Click on "Test Configuration" and you will get the list of Attribute Names and Attribute Values that are sent by your OAuth provider.
  • From the Test Configuration window, map the Attribute Names in the Attribute Mapping section of the plugin. Refer to the screenshot for more details.
Configure Apple SSO (Single Sign-On) - Attribute Mapping

  • Enable Role Mapping: To enable Role Mapping, you need to map Group Name Attribute. Select the attribute name from the list of attributes which returns the roles from your provider application.
    Eg: Role
Configure Apple SSO (Single Sign-On) - Role Mapping

  • Assign WordPress role to the Provider role: Based on your provider application, you can allocate the WordPress role to your provider roles. It can be a student, teacher, administrator or any other role depending on your application. Add the provider roles under Group Attribute Value and assign the required WordPress role in front of it under WordPress Role.

    For example, in the below image, Teacher has been assigned the role of Administrator & Student is assigned the role of Subscriber.
Configure Apple SSO (Single Sign-On) - Role Mapping WordPress Roles

  • Once you save the mapping, the provider role will be assigned the WordPress administrator role after SSO.
    Example: As per the given example, Users with role 'teacher' will be added as Administrator in WordPress and 'student' will be added as Subscriber.

  • The settings in the Single Sign-On (SSO) Settings tab define the user experience for Single Sign-On (SSO). To add a Apple login widget on your WordPress page, you need to follow the below steps.
  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure Apple SSO (Single Sign-On) - WordPress Login Button Setting

  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure Apple SSO (Single Sign-On) - WordPress Login Button Setting

  • Open your WordPress page and you can see the Apple SSO login button there. You can test the Apple Single Sign-On (SSO) now.
  • Make sure the "Show on login page" option is enabled for your application. (Refer to the below image)
Configure Apple SSO (Single Sign-On) - Show On Login Page Option

  • Now, go to your WordPress Login page. (Eg. https://< your-wordpress-domain >/wp-login.php)
  • You will see an Apple SSO login button there. Once you click the login button, you will be able to test the Apple Single Sign-On (SSO).
Configure Apple SSO (Single Sign-On) - Login Button


In this Guide, you have successfully configured Apple Single Sign-On (SSO) by configuring Apple as OAuth Provider and WordPress as OAuth Client using our OAuth Single Sign-On (OAuth / OpenID Connect Client) plugin for WP. This solution ensures that you are ready to roll out secure access to your WordPress site using Apple login credentials within minutes.



 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!


ADFS_sso ×
Hello there!

Need Help? We are right here!

support