Skip to content

Using a Registration Token

Francis Augusto Medeiros-Logeay edited this page Feb 27, 2026 · 1 revision

What is a registration token?

On Platform Single Sign-on, you can use a Registration Token to perform a silent Device registration. This is useful especially for shared machines, where Device Registration occurs automatically. But it is also recommended to add extra security so that it provides a way to identify that a given machine is enrolled on a certain MDM.

Apple gives very little recommendations regarding Registration Tokens. See this documentation on the item "Set up Platform Single Sign-on). Here, a Registration Token is used as an alternative to device attestation.

However, we chose to do things in a different way with this extension:

  • Attestation is always required, so we know it is a legit Apple device being registered
  • Registration Token can be used in addition to attestation.

So, if this extension is configured to require a Registration Token, device registration will occur without any user login. But if Registration Token isn't required, the user will be prompted to login to the Keycloak-based IdP.

How to configure Registration Token?

To configure Registration Token, you need to:

  • add a RegistrationToken key and value to your SSO Extension configuration profile
  • Enable it on Keycloak

On your SSO Extension profile, add the following:

<key>RegistrationToken</key>
<string>yoursecrettoken</string>

On Keycloak, go to Realm Settings, find the "Platform Single Sign-on" tab, and:

  • enable "Require Registration Token" and
  • fill out the Registration Token with the same token you have on your profile
Screenshot 2026-02-27 at 09 14 38

Note: If Registration Token isn't required on Keycloak but one is sent anyway, the registration will fail. Either require Registration Token when your MDM has it configured, or disable the requirement.

Clone this wiki locally