Skip to content

ClientID

For using MSAL, You should acquire your own Azure Client ID. This document describes how to acquire your own Azure Client ID for Xbox authentication.

1. Go to Azure Active Directory

Open Azure Portal and find Azure Active Directory menu.

image

2. App registration

Add - App Registration

image

Name: your app name
Account type: Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
Redirect URI: Public client/native, http://localhost

image

Click 'Register' button.

3. Authentication manage

Go to App registrations - your app name

image

In this screen, you can get Application (Client) ID
Click Redirect URIs

image

Add 'Msal Only'

image

Scroll down and 'Allow public client flows'

image

Click 'Save' button

4. Register Client ID

After creating your application in Azure, you need to allowlist your Client ID to prevent 403: FORBIDDEN errors from the Minecraft authentication API. Follow the guidance in the official Minecraft help article to ensure your application is recognized.

https://help.minecraft.net/hc/en-us/articles/16254801392141

https://github.com/CmlLib/CmlLib.Core.Auth.Microsoft/issues/16