- Apple Developer Account Configurations
- Configuring the Library
You need to create this even if you don't have an iOS or a Mac app
Scroll down to "Capabilities", and find "Sign in with Apple" and check it.
Hit continue and then register.
Fill out the details here, and click configure on "Sign in with Apple".
Add your domain that you'll use in the "Domains" section and the redirect url that you want to allow
Click Continue and Register.
Now, you need to verify this domain and in order to do that, click on the Service ID that you just created, again, and click configure on "Sign in with Apple". When you do that, you should be able to see that there is a download and a verify button.
Hit download, and upload it to the root directory of your website. Once that is done, visit https://yourwebsite.com/.well-known/apple-developer-domain-association.txt and see if it actually works. Once that is done you can hit verify and you're good to go.
Go to the "Keys" section in your Developer account and create one like this:
Click on configure on the "Sign in with Apple" option and make sure it is assigned to the correct App ID. Click continue and register. Now, click on Download and MAKE SURE YOU KEEP THE FILE SAFE AND SECURE! YOU CANNOT REDOWNLOAD IT ONCE YOU HAVE ALREADY DOWNLOADED IT
Make a folder called "config" and add two files:
- The private key file that you just downloaded
- A new file called
config.json
Inside of config.json, paste the following sample:
{
"client_id": "",
"team_id": "",
"redirect_uri": "",
"key_id": "",
"scope": ""
}
The scope
field is to set what information we want to gather from the user. We can set email
and/or name
. This information is still not provided by Apple because this feature is still in Beta - but if you provide it the first time, when Apple finally releases it, your application will already have this permission provided. Otherwise the user has to revoke permissions to your application and log in again to be prompted for the new information request.
The client_id
is actually called the "Service ID" that you will create in the 'Identifiers' section
The team_id
is the 10 character code on the top left of the developer page next to your name.
The redirect_uri
is the return url you added in the developer portal
The key_id
is the identifier for the private key you generated
You can now save this as config.json in the config folder.