docs
  1. Resources
  2. Single Sign-on (idp)
  3. Callback After Apple Login

Callback after Apple Login

1.0.0
OpenAPI 3.0.1

This is the specification of Authentication API. For more information about how to interact with the Authentication API, you can read the respective developer guide.

Getting Started

This API must be only used by backend services

Creating an API Client

First you will need to create a new API client using the SCAYLE Panel to obtain your client_id and client_secret. Make sure to store those credentials safely in your backend.

Authenticating a User

There are three different options on how to authenticate a user:

  1. Register a new user
  2. Login an existing user
  3. Login as a guest customer without a password

All of those endpoints will require you to provide the client_id and client_secret as a Basic Auth header.

Credentials client_id and client_secret don't have any expiration date. After successfully authenticating a user, you will get an access token and a refresh token. Access tokens are valid for 30 days and Refresh Tokens are valid for 60 days.

Validating a token

You will need to call the validation endpoint to check if an access token is still valid.

Refreshing a token

Refreshing a token is done by using the POST token endpoint by using the refresh_token OAuth grant.

You should consider to check the expiration date of the JWT to trigger a refresh early enough.

Server:https://{tenant-space}.auth.scayle.cloud
Client Libraries

Redirect Chains

​

Public GET endpoints for redirect chains

Redirect Chains Operations

Callback after Apple Login

​

The user will be redirected back from the Apple sign-in page to this url. The shop does not have to use this endpoint.

Body

required
application/json

Responses

  • Successful redirect back to Shop in Location header

  • Request invalid

  • Provider not found

  • Validation failed

Request Example for post/v1/auth/external/apple/callback
curl https://TENANT_SPACE.auth.scayle.cloud/v1/auth/external/apple/callback \
  --request POST \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'state=eyJpZHBJZCI6MTUsInNob3BJZCI6MTM5LCJjbGllbnRJZCI6MSwiZm9yd2FyZEp3dCI6ImV5SjBlWEFpT2lKS1YxUWlMQ0poYkdjaU9pSklVekkxTmlKOS5leUpqWVd4c1ltRmphMVZ5YkNJNkltaDBkSEJ6T2k4dmQzZDNMbUZpYjNWMGVXOTFMWE4wWVdkcGJtY3VaR1VpTENKcFpIQkxaWGtpT2lKaGNIQnNaV1JsZGlJc0ltTnNhV1Z1ZEVsa0lqb2lNU0lzSW1saGRDSTZNVGN6T1RRME9UUTJNeXdpWlhod0lqb3hOek01TkRVd016WXpmUS53UVduNW8xS0xYbVVCOGZGNENrSnE1aW1Wb0Z1b0NDRFdlelpsYmpyZjk0In0%3D' \
  --data-urlencode 'code=c4057bd101e834f5aa5f174e95e6a6418.0.pvsx.lTee3wwGiX4PHWNuB6SiLg' \
  --data-urlencode 'user={"name":{"firstName":"John","lastName":"Doe"},"email":"[email protected]"}'
No Body

Last updated: November 27, 2026