Set up Device ID as an identity provider
Overview
A Device ID is a unique identifier for a device. With AccelByte Gaming Services (AGS), your player can use their Device ID to log in to your game and give them a headless account. Read the getting online tutorials for Unreal Engine and Unity to learn how to integrate a Device ID login method into your game.
Goals
- Enable Device ID authentication for your game using the AGS SDK.
Prerequisites
- An AGS Admin Portal account with permissions to manage authentication.
- A game namespace.
Set up the Device ID login provider in AGS
-
In the AGS Admin Portal, go to your game namespace.
-
On the sidebar menu, go to Foundations > 3rd Party Integrations > Auth & Account Linking.
-
On the Auth & Account Linking page, click + Add New.

-
On the Select login provider page, find Device ID under the Device tab and click on it.
-
The Set Up Device login provider form appears.

-
Fill in the following fields:
- Platform ID:
device. Set automatically. Cannot be changed. - Redirect URI: The OAuth callback URL. Defaults to
http://127.0.0.1.
- Platform ID:
-
Click Add & Activate to create and activate the provider in one step. Alternatively, click Add to create without activating.
Edit a login provider
-
On the Auth & Account Linking page, click the Device ID provider.
-
The Device login provider dialog appears. Update the fields as needed.
-
Use the Status toggle at the top to activate or deactivate the provider.

-
Click Save.
Best practice
Since your users don't need to input any credentials as they will be using a device to log in, there's a risk a user will lose access to their device and it will be difficult to recover their account. To mitigate this risk, we suggest you prompt your users to upgrade their headless account to a full account. For more details about accounts, you can read the documentation on how accounts work.