pyCraft icon indicating copy to clipboard operation
pyCraft copied to clipboard

Can't authenticate against Mojang Authentication Server

Open Hasenzahn1 opened this issue 3 years ago • 6 comments

Ok so after installing this "package" i tried the start.py entered my Account Name and Password multiple time correctly but everytime when trying to authenticate i get a [403] ForbiddenOperationException: 'Invalid credentials. Invalid username or password. Exception. I have no clue how to resolve this. The account i try to authenticate is not migrated so this shouldn't be a problem. It would be nice if someone could help me.

Also a suggestion: Create a Discord server if you haven't done already (i couldn't find it?) and link to it in the wiki.

Hasenzahn1 avatar Dec 08 '21 15:12 Hasenzahn1

are you using a microsoft account?

MiniDigger avatar Dec 09 '21 06:12 MiniDigger

As stated in the issue, no.

Hasenzahn1 avatar Dec 09 '21 13:12 Hasenzahn1

Mojang Authentication is being depreciated. As this version of pyCraft only supports the old Mojang Auth, you would need to implement or find someone who implemented the Microsoft Auth.

MisterSoandSo avatar Dec 11 '21 00:12 MisterSoandSo

But i don't use a Microsoft account! I am using a normal mojang account that has not been migrated.

Hasenzahn1 avatar Dec 11 '21 08:12 Hasenzahn1

@Hasenzahn1

Ok so after installing this "package" i tried the start.py entered my Account Name and Password multiple time correctly but everytime when trying to authenticate i get a [403] ForbiddenOperationException: 'Invalid credentials. Invalid username or password. Exception. I have no clue how to resolve this. The account i try to authenticate is not migrated so this shouldn't be a problem. It would be nice if someone could help me.

There are two possible causes I can think of:

  1. Mojang's authentication server sometimes returns this error when a host has been rate-limited for sending too many authentication attempts; if you wait for an hour and authenticate with the correct credentials, it may work.
  2. The "username" you authenticate is usually an email address, rather than the profile name associated with your account - make sure you are using the former.

joodicator avatar Dec 20 '21 16:12 joodicator

Also a suggestion: Create a Discord server if you haven't done already (i couldn't find it?) and link to it in the wiki.

The IRC channel #mcdevs on irc.libera.chat seems to be the current real-time chat location for this kind of development. I wouldn't rule out a move to Discord in the future, but IRC still seems to be established as the medium for open-source software development. Anyway, if you want to advocate a change in the status quo, it might be better to discuss it there.

joodicator avatar Dec 20 '21 16:12 joodicator