Configure the Keycloak Minecraft identity provider
Use this page after installation to configure a working Minecraft sign-in flow in Keycloak.If you have not installed the provider yet, complete the installation guide first.To complete the required fields, you need the Xbox flow, the , and the used for stable account linking.If you supply provider credentials through , those values can replace admin UI defaults.
After adding the Minecraft in Keycloak, configure these fields:
Field
Required
Description
Client ID
Yes, unless provided through SPI config
Microsoft Azure application client ID
Client Secret
Yes, unless provided through SPI config
Microsoft Azure client secret
Partner Relying Party
Yes
Xbox partner relying party that returns the ptx claim used for stable account linking
This provider supports only the OAuth client authentication method client_secret_post. Do not switch the provider to Basic or JWT-based client authentication.
Stable account linking depends on the Xbox partner .The provider requests a second partner token in addition to the Minecraft token. Your Xbox setup must include a that returns the .If the selected partner token exposes the only inside the encrypted payload, configure Partner XSTS Private Key with the matching private key.
The account may own Java but not yet have a created Java profile. In that case, the user must complete profile creation in the Minecraft Launcher before Java-based login can succeed.