Skip to content

Authentication Types ​

A Token Service can be configured with one of three main authentication methods. Each method determines how the Token Service verifies game client tokens.

Custom Keys ​

With the Custom Keys mode, you provide one or more PEM public keys. The Token Service uses these keys to verify the signature of game client tokens. This mode suits a setup where your own infrastructure signs the tokens, for example a custom login platform for your players.

  • Supported algorithms: RS256, RS384, RS512, ES256, ES384, ES512.
  • Key format: PEM (RSA or EC public keys).
  • Number of keys: a primary key and an optional secondary key.

For rotating keys without downtime, see Rotating the key.

API

The API takes the keys as a list per platform, with up to two keys per signing algorithm and platform. The GameFabric UI shows the first key of that list as the primary key and the second as the secondary key.

Generated Keys ​

Instead of Custom Keys, you can select Generated Keys to generate an ES256 key pair in the web interface. The public key is stored in the Token Service configuration and the private key is given to you once to be used by your game's authentication backend.

  • Algorithm: ES256.
  • Key format: PEM.
  • Use case: When you need a quick setup without external key management.

WARNING

The private key is never seen by GameFabric's backend, it is only shown once and cannot be retrieved later. Make sure to save it securely. Do not include it with the game client, it is only meant for signing use by the authentication backend.

EOS (Epic Online Services) ​

EOS authentication validates tokens issued by Epic Online Services. This mode is for games already depending on EOS for player authentication.

To use this authentication method EOS must be the only selected platform. No other platform is available when EOS is active.

Token Types

Use Connect tokens only. The UI automatically configures EOS for Connect token use. Auth tokens are not fully supported.

Specific IDs

The API optionally allows specifying individual deployment/product/sandbox IDs. These IDs will not be displayed in the UI.

JWKS ​

JWKS (JSON Web Key Set) authentication uses a remote JWKS endpoint to fetch the public keys needed to verify tokens. Use this if you have an authentication backend that already has its own JWKS endpoint to provide its public keys dynamically.

  • Protocol: HTTPS only.
  • Endpoint: A URL to a JWKS endpoint (e.g., https://example.com/.well-known/jwks.json).
  • Use case: When your tokens are signed by an external identity provider that supports JWKS.

The JWKS endpoint is fetched periodically to refresh the public keys. The Token Service uses the keys from the JWKS endpoint to verify tokens.