GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.74k stars 682 forks source link

Geyser can't authenticate players for Java servers in some cases #4901

Open Monutchuan opened 3 months ago

Monutchuan commented 3 months ago

Describe the bug

Login with password: No. Even if the profile is set, Gerser will still ask for a verification code.

Verification code: Even if the verification is successful, the player will still be kicked off the server and prompted "A paid account is required".

To Reproduce

  1. Log in to the server
  2. It will prompt that you need a Microsoft account to log in, click “Log in with a Microsoft Account”. There are only two buttons, the other one is "Disconnect".
  3. Enter the verification code on the website as required.
  4. Finished, click "Done" and the server will immediately disconnect the player and prompt that a paid Java account is required. This is even if Minecraftg Java has been purchased on a Microsoft account.

Expected behaviour

I think there will be three options on the Microsoft account login interface, namely: login with password (credentials can be saved), login with verification code, and disconnect. However, even if the relevant profile is true, it still does not include password login as mentioned in the comments; login with verification code, but will still be kicked out of the server. The only way to solve this is to use an offline server and install Floodgate.

Screenshots / Videos

螢幕擷取畫面 (69) 螢幕擷取畫面 (70)

Server Version and Plugins

No response

Geyser Dump

https://dump.geysermc.org/3hKCQndcGkVoR1y7C1ZU3jWmUoXXw0kR

Geyser Version

Geyser-Spigot v2.4.0-SNAPSHOT

Minecraft: Bedrock Edition Device/Version

1.20.80, Windows 10 & Android

Additional Context

No response

Camotoy commented 3 months ago

Please update to the latest Geyser build and retry.

Also, entering a password has not been an option for a significant amount of time now. Because of the security implications, we will not be adding it back.

Monutchuan commented 3 months ago

Please update to the latest Geyser build and retry.

Also, entering a password has not been an option for a significant amount of time now. Because of the security implications, we will not be adding it back.

I tried doing that, but it still doesn't work. java.util.concurrent.CompletionException: net.raphimc.minecraftauth.responsehandler.exception.InformativeHttpRequestException: status: 401 Unauthorized, message: {"Identity":"0","XErr":2148916238,"Message":"","Redirect":"https://start.ui.xboxlive.com/AddChildToFamily"}

Camotoy commented 3 months ago

Can you log into Java Edition Minecraft?

Monutchuan commented 3 months ago

Can you log into Java Edition Minecraft?

Yes.

Camotoy commented 3 months ago

Can you log into Prism Launcher?

Monutchuan commented 3 months ago

Can you log into Prism Launcher?

I can. Edit: I noticed. Geyser seems to work the same way as this launcher, blocking certain accounts from logging in (when the account is marked as underage and not in a family). Then you have to use an account that meets the criteria for it to work properly.

onebeastchris commented 3 months ago

~~Hey! Could you test running the following build (a previous version of Geyser, linked below) and checking if you are able to log in with it? https://download.geysermc.org/v2/projects/geyser/versions/2.4.0/builds/620/downloads/spigot~~ Please disregard.

Camotoy commented 3 months ago

Reopening because the issue itself still stands.