ammaraskar / pyCraft

Minecraft-client networking library in Python
Other
817 stars 184 forks source link

Can't authenticate against Mojang Authentication Server #239

Open Hasenzahn1 opened 2 years ago

Hasenzahn1 commented 2 years ago

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.

MiniDigger commented 2 years ago

are you using a microsoft account?

Hasenzahn1 commented 2 years ago

As stated in the issue, no.

MisterSoandSo commented 2 years ago

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.

Hasenzahn1 commented 2 years ago

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

joodicator commented 2 years ago

@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 commented 2 years ago

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.