<@U04UQ68083H> Do you know what are the steps to s...
# ory-copilot
f
@chilly-king-10285 Do you know what are the steps to setup app oidc with apple ?
c
A message from kapa.ai
Yes, I can provide you with the steps to set up Apple as a social sign-in provider for your app using Ory. Here are the steps: 1. Create an Apple Developer account. Go to [Enrolling and Verifying Your Identity with the Apple Developer App](https://developer.apple.com/support/app-account/) to create one. 2. Sign in to the Ory Console and select [Social Sign-in](https://console.ory.sh/projects/current/social-signin). 3. Click the switch next to the Apple logo to start the configuration. 4. Copy the Redirect URI and save it for later use. 5. Using an Apple Developer Account, create an app, a service, and a private key. 6. Copy the Services ID from the Apple registered app to the Client ID field in the form in the Ory Console. 7. Add the saved Redirect URI from Ory to the Return URLs of the Apple registered application. 8. In the Scopes field of the form in the Ory Console, add the following scope: -
email
9. Copy the following details from your registered application in Apple to the corresponding fields in the Ory Console form: - Apple Team Id - Apple Private Key Id - Apple Private Key 10. In the Data Mapping field of the form in the Ory Console, add the following Jsonnet code snippet, which maps the desired claims to the Ory Identity schema:
Copy code
local claims = {    email_verified: false,   } + std.extVar('claims');      {    identity: {    traits: {    // Allowing unverified email addresses enables account    // enumeration attacks, if the value is used for    // verification or as a password login identifier.    //    // Therefore we only return the email if it (a) exists and (b) is marked verified    // by Apple.    [if 'email' in claims && claims.email_verified then 'email' else null]: claims.email,    },    },   }
11. Click Save Configuration. For more details, you can refer to the [Ory documentation on setting up Apple as a social sign-in provider](https://www.ory.sh/docs/kratos/social-signin/apple).