CmlLib.Core.Auth.Microsoft icon indicating copy to clipboard operation
CmlLib.Core.Auth.Microsoft copied to clipboard

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

Open silbergrom opened this issue 2 years ago • 4 comments

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

silbergrom avatar Jun 08 '23 18:06 silbergrom

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

silbergrom avatar Jun 09 '23 10:06 silbergrom

@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?

lostmsu avatar Jun 15 '23 17:06 lostmsu

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

silbergrom avatar Jun 16 '23 17:06 silbergrom