Authentication
A player reaches the game with a session: a player id and an access token that lives 24 hours.
Three ways to get a session
Section titled “Three ways to get a session”- A device — the client makes an id and keeps it locally. No provider and no account: what a game without sign-in uses, and the player can attach an account to it later.
- An account of a provider — the game gets a token from Google, Apple, Facebook, CrazyGames, Yandex, VK or any OpenID Connect provider, and the platform verifies it. Each environment holds up to ten connections.
- A webhook of yours — the platform asks your own sign-in service who the client is.
The call is the same for every provider — Session.signIn of @rudder/sdk,
RudderSdk.Session.SignInAsync in C# — and it is described once in
Client SDK. What differs is the payload the game sends and what the platform
checks.
Providers
Section titled “Providers”| Provider | The game sends | Notes |
|---|---|---|
idToken | ID token of Google Identity Services | |
| Apple | idToken | identity token of the Apple credential |
accessToken | asked about through the Graph API | |
| CrazyGames | idToken | user token of their SDK; crazygames.com only |
| Yandex ID | token | OAuth token, checked asking login.yandex.ru |
| Yandex Games | signature | HMAC of the player, inside the Yandex Games page |
| VK ID | code, deviceId | the platform exchanges the code itself |
| OpenID Connect | idToken | any issuer with a discovery document |
| Custom sign-in | payload | posted to your URL and signed |
Linking accounts
Section titled “Linking accounts”A player holds one identity per provider and any number of them at once: linkProvider attaches
another to the session of a player, unlinkIdentity detaches it, and the last identity cannot be
detached.
Where to configure
Section titled “Where to configure”The connections are made on the Authentication screen of the Dashboard, one list per environment — see Sign-in providers. Every provider answers the errors listed in Errors; each page names the ones particular to it.