MCAuthLib icon indicating copy to clipboard operation
MCAuthLib copied to clipboard

Microsoft authentication with username and password not working

Open hhhzzzsss opened this issue 2 years ago • 2 comments

Recently, every time I've tried to use Microsoft authentication with a provided email and password, it's always given me the exception Invalid password or access token.

It was working before and I didn't change anything about my code, so I think Microsoft probably changed something internally.

Nothing has changed about the account I was using either, and I can still log into it normally on a regular Minecraft client.

As an additional note, when I was debugging, I found that this type of authentication still seems to work when I use a different library called node-minecraft-protocol. As far as I can tell, that library seems to authenticate the same way that this library does (node-minecraft-protocol's XboxTokenManager uses https://github.com/XboxReplay/xboxlive-auth), so I don't know why it's not working here.

hhhzzzsss avatar Mar 13 '23 18:03 hhhzzzsss

Same issue here

LocutusV0nB0rg avatar May 24 '23 06:05 LocutusV0nB0rg

+1, i tried to replace the auth using the offical MSAL Library (https://github.com/AzureAD/microsoft-authentication-library-for-java), but I'm not getting it to work, due to something called a WsTrust not being found.

SteinGaming avatar Jul 11 '23 20:07 SteinGaming