Skip to content

Commit

Permalink
resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
muradkhateeb78 committed Jul 23, 2024
1 parent 25337eb commit 162db62
Showing 1 changed file with 27 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,52 +1,47 @@
# How to set up Apple SSO TO be able to let users sign in
Just as we have other oAuth providers that allow users to sign in user their accounts created on other well known platforms, we also have enable Apple SSO support for IR Studio. This guide scripts down the blueprints to be able to enable it for any perticular application.
# How to set up Apple SSO to be able to let users sign in
Just as we have other OAuth providers that allow users to sign in user their accounts created on other well known platforms, we also have enabled Apple SSO support for IR Studio. This guide scripts down the blueprints to be able to enable it for any particular application.

# Pre Requisites
* Apple Developer Account
* An Apple Account add into the developer account with all the right permissions to be able to edit and udpate app details.
* An app where you want to enable Apple SSO, `IR Studio` in our case.


Go to [Apple Developer Account](https://idmsa.apple.com/IDMSWebAuth/signin?appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757&path=%2Faccount%2F&rv=1) and sign in with and apple Developer account which should have been added to the developer account perviously and must have the right permissions. There, you will need to create an App ID a service ID and later on a private Key, these will give you the credentials that you can then use with in your app to be able to let users log in using their apple IDs.
Go to [Apple Developer Account](https://idmsa.apple.com/IDMSWebAuth/signin?appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757&path=%2Faccount%2F&rv=1) and sign in with and apple Developer account which should have been added to the developer account perviously and must have the right permissions. There, you will need to create an App ID a service ID and later on a private Key, these will give you the credentials that you can then use with in your app to be able to let users log in using their Apple IDs.

# Create an App ID
In the Apple Developer account, do the following.

* Go to Section named as `Certificates, Ids & Profiles` and click Identifiers.
* Create a new identifier, which usually can be created by clicking a small '+' icon besides the identifiers headline. If you do not see that, your logged in user might not have the necessary permissions to add the app ID. Please get your users the right permissions before moving ahead.
* Click "App IDs" and click "Continue".
* Fill in the form that opens up.
* Enter the description.
* Enter the Bundle ID which could be a revers-domain styled string i.e. 'com.domainname.appname'
* Scroll down to "Capabilities" section and check `Sign In with Apple` and click continue.
* verify details and click register.
1. Go to Section named as `Certificates, Ids & Profiles` and click Identifiers.
2. Create a new identifier, which usually can be created by clicking a small '+' icon besides the identifiers headline. If you do not see that, your logged in user might not have the necessary permissions to add the app ID. Please get your users the right permissions before moving ahead.
3. Click "App IDs" and click "Continue".
4. Fill in the form that opens up.
1. Enter the description.
2. Enter the Bundle ID which could be a revers-domain styled string i.e. 'com.domainname.appname'
3. Scroll down to "Capabilities" section and check `Sign In with Apple` and click continue.
4. verify details and click register.

# Create a Service ID
In the Apple Developer account, do the following.

* Go to Section named as `Certificates, Ids & Profiles` and click Identifiers.
* Click the '+' button beside the 'identifiers'.
* Click "Service IDs" and click "Continue".
* Click "App IDs" and click "Continue".
* Enter the description.
* Enter the Bundle ID which could be a revers-domain styled string i.e. 'com.domainname.appname'
* Scroll down to "Capabilities" section and check `Sign In with Apple` and click on the "Configure" button beside the checked option.
* You will see a screen for "Web Auhentication Configuration". Select the App ID we created previously as the "Primary App ID". You can add the Return URLs on which the user will be redirected once it is authentication by Apple.
* Click "Continue", verify the details and click Register.
1. Go to Section named as `Certificates, Ids & Profiles` and click Identifiers.
2. Click the '+' button beside the 'identifiers'.
3. Click "Service IDs" and click "Continue".
4. Click "App IDs" and click "Continue".
1. Enter the description.
2. Enter the Bundle ID which could be a revers-domain styled string i.e. 'com.domainname.appname'
3. Scroll down to "Capabilities" section and check `Sign In with Apple` and click on the "Configure" button beside the checked option.
4. You will see a screen for "Web Auhentication Configuration". Select the App ID we created previously as the "Primary App ID". You can add the Return URLs on which the user will be redirected once it is authentication by Apple.
5. Click "Continue", verify the details and click Register.

Please note that the service ID that you just created will serve as your Client ID while sending authentication requests from your app.

# Create the Secret Key
We will also need to create a secret key that we can then use to generate the `Client Secret` which again will be used while sending an authentication request to Apple.

* Go to "Cretificates, Identifiers & Profiles > Keys".
* Give a Key Name and check the "Sign In With Apple" checkbox.
* Click Configure and select the App ID we previously created under the "Choose a Primary App ID" key.
* Click save, verify the details and click Register.
* Download the Key and Keep it in a safe and secure place. `Please note that this can only be downloaded once, so save it to a safe and secure location`.
* Click Done.






1. Go to "Cretificates, Identifiers & Profiles > Keys".
2. Give a Key Name and check the "Sign In With Apple" checkbox.
3. Click Configure and select the App ID we previously created under the "Choose a Primary App ID" key.
4. Click save, verify the details and click Register.
5. Download the Key and Keep it in a safe and secure place. `Please note that this can only be downloaded once, so save it to a safe and secure location`.
6. Click Done.

0 comments on commit 162db62

Please sign in to comment.