Apple Sign Up/Log In
Users can log in/register the system through their Apple account
API Usage Instructions
Before calling the API, please ensure you have thoroughly read the relevant API documentation. Below are specific instructions for different login methods:
一、Setting Up Apple Login Configuration
For more detailed steps, please refer to the Apple developer documentation: Apple Developer Documentation
Before using the third-party login service, you need to register as a developer on the respective platform and create an application. The registration steps for Apple are as follows:
Register for an Apple Developer Account: You need a valid Apple Developer account, which can be registered through the Apple Developer site.
Create an App ID: Create a new App ID in the Apple Developer portal and enable the "Sign in with Apple" feature.
Configure Services: In the "Certificates, Identifiers & Profiles" section, configure the necessary certificates and provisioning profiles for your application.
Generate Client Key: Obtain the Client ID (Client ID) and Client Secret (Client Secret).
Configure the Client ID and Client Secret in the White Label Management Backend.
二、Retrieve Third-Party Login Configuration Information
Call the third-party configuration API to obtain the Client ID registered in the first step.
Request Parameters:
{
// Third-party source: Supported third-party login sources
// Optional values include: google, facebook, twitter, telegram, apple, metamask, separated by commas
"thirdSource": "google,apple" // Example: using Google and Apple login
}Response Structure:
三、Login Code Implementation
Refer to the documentation: Configuring Your Webpage for Sign in with Apple
1. Include the Apple JS SDK:
Include the Apple JavaScript SDK in your HTML page as follows:
2. Initialize the Apple JS SDK:
3. Initiate Login Authorization Request:
4. Listen for Login Authorization Success:
5. Apple Access Token Verification:
Call the Apple third-party login verification API.
Request Parameters:
Response Structure:
6. Complete Login/Register
Based on the information returned in the previous step, call the third-party login or registration API.
Last updated