CmlLib / CmlLib.Core.Auth.Microsoft

Minecraft Login with Microsoft Xbox account
MIT License
22 stars 4 forks source link

Getting MinecraftAuthException: '403: Forbidden' when trying to login with Microsoft MSAL #16

Open silbergrom opened 1 year ago

silbergrom commented 1 year ago

I'm getting this error "CmlLib.Core.Auth.Microsoft.Mojang.MinecraftAuthException: '403: Forbidden'" when trying to sign in via loginHandler.LoginInteractive.

silbergrom commented 1 year ago

So I looked at the HttpRequest and found out that new Apps that want to use the Minecraft Auth API needs to be registered at Mojang. See here for further information: https://help.minecraft.net/hc/en-us/articles/16254801392141

lostmsu commented 1 year ago

@silbergrom did you figure this one out? Is there a tutorial on how to create an AppID that form demands? Is it just an Azure app identifier?

silbergrom commented 1 year ago

Just use this tutorial from CmlLib: https://github.com/CmlLib/CmlLib.Core.Auth.Microsoft/wiki/Create-Client-ID-for-MsalClient