Apple social identity provider
Social authentication is deprecated and will be removed in a future release of IDM. For more information, see Deprecation. |
To configure Apple as a social identity provider (Sign in with Apple), you’ll need an Apple developer account.
Configure Apple Login
You need a client ID and client secret for your application. In the Apple developer portal, the client ID is called a Services ID
.
-
Log in to the Apple Developer Portal.
-
Select Certificates, Identifiers and Profiles > Identifiers.
-
On the Identifiers page, select Register a New Identifier, then select Services IDs.
-
Enter a Description and Identifier for this Services ID, and make sure that Sign in With Apple is enabled.
The Identifier you specify here will be your OAuth Client ID. -
Click Configure.
-
On the Web Authentication Configuration screen, enter the Web Domain on which IDM runs, and specify the redirect URL used during the OAuth flow (Return URLs ).
The redirect URL must have the following format:
https://idm.example.com/redirect
You must use a real domain (FQDN). Apple does not allow localhost
URLs. If you enter an IP address such as127.0.0.1
, it will fail later in the OAuth flow. -
Click Save > Continue > Register.
-
Generate the client secret.
Instead of using simple strings as OAuth client secrets, Apple uses a public/private key pair, where the client secret is a signed JWT. To register the private key with Apple:
-
Select Certificates, Identifiers and Profiles > Keys, then click the + button to register a new key.
-
Enter a Key Name, and enable Sign In with Apple.
-
Click Configure, and select the primary App ID that you created previously.
-
Apple generates a new private key, in a
.p8
file.You can only download this key once. Ensure that you save this file, because you will not be able to download it again. Rename the file to
key.txt
, then locate the Key ID in that file. -
Use this private key to generate a client secret JWT. Sign the JWT with your private key, using an ES256 algorithm.
-
Configure an Apple identity provider
To configure an Apple social identity provider using the admin UI:
-
From the navigation bar, click Configure > Social ID Providers.
-
On the Social Identity Providers page, enable Apple.
-
In the Apple Provider window, enter applicable values in the fields, and click Save. For a complete list of fields, see Apple Social Identity Provider Configuration Details.
Configure user registration through Apple
To configure Apple social user registration using the admin UI:
-
From the navigation bar, click Configure > User Registration, and click the Social tab.
-
Enable Social Registration.
For more information, see Self-service end user UI.
Apple social identity provider configuration details
You can set up the Apple social identity provider through the admin UI or in a conf/identityProvider-apple.json
file. IDM generates the identityProvider-apple.json
file when you configure and enable this social identity provider in the admin UI. Alternatively, you can create the file manually.
The following table includes the information shown in the admin UI Apple Provider pop-up window, along with associated information in the identityProvider-apple.json
file.
Property (UI) | Property (JSON file) | Description |
---|---|---|
Client ID |
|
The client identifier for your Apple App. In the Apple developer portal, the client ID is called a |
Client Secret |
|
Used with the Client ID to access the applicable Apple API. |
Scope |
|
An array of strings that allows access to user data. |
Authorization Endpoint |
|
Typically, |
Token Endpoint |
|
Endpoint that receives a one-time authorization code, and returns an access token. Typically, |
Well-Known Endpoint |
|
Access for other URIs. Typically, |
Issuer |
|
The token issuer. Typically, |
Not in the admin UI |
|
Name of the social identity provider. |
Not in the admin UI |
|
Configuration class for the authentication module. |
Not in the admin UI |
|
Whether to use basic authentication. |
Not in the admin UI |
|
Mapping between Apple and IDM. |
For information on social identity provider buttons and badges, see Social identity provider button and badge properties.