Floodgate icon indicating copy to clipboard operation
Floodgate copied to clipboard

Add ability to directly link to Mojang account on login

Open Phoenix616 opened this issue 4 years ago • 10 comments

What feature do you want? This is a request of a functionality which allows directly linking your Bedrock account to your Mojang one instead of having to input your Mojang account's login data to play with your Mojang account or logging in with Floodgate.

Possible ways of doing this:

  • Display an input field which accepts a linking code which you can get when logging in with your Mojang account and running a link command (easy method)
  • Directly link your Xbox account to your Mojang account via Xbox's OAuth (this might be a bit more difficult to do and would require the Geyser software to host a website to get a callback from their API and might even require the server owner to setup their own xbox oauth app or a general geyser one with shared api keys)

Ideally this would be a new auth-type additionally to online, offline and floodgate. Due to the nature of it (requiring a link code from the server side) it might only be possible in the minecraft server/proxy parts or would have to be integrated in Floodgate (maybe it even fits better there, if so feel free to move the issue to that repo. If this would be better in Floodgate then no fake player should ever be visible to the actual server and plugins in order to not cause issues by non-mojang players).

Adding such a feature would enable Geyser to really be usable in front of public servers as it would neither require the user to trust the server by handing over their login data as well as make it compatible with every server plugin which might break due to how Floodgate works.

Alternatives? A possible alternative would be to use Floodgate and connect players using it to a placeholder server where they can link their account, and only then they could switch to one of the other servers or do anything. This would make the setup way more complex than just having to install Geyser and linking.

Phoenix616 avatar May 24 '20 16:05 Phoenix616

It sounds like this already exists with Floodgate and /linkaccount, is it not?

Camotoy avatar May 24 '20 16:05 Camotoy

This should be an issue on Floodgate I think you want to block players with no Java account? That's something that could be added if that's what you mean

Heath123 avatar May 24 '20 16:05 Heath123

Yes, this is something that would be handled with Floodgate. I'll transfer the issue.

Camotoy avatar May 24 '20 16:05 Camotoy

I think you want to block players with no Java account?

Yes, I only want to allow people with a linked account to log in without the proxy/server ever seeing the XUID users like the current linking requires.

Phoenix616 avatar May 24 '20 16:05 Phoenix616

Sure, something like this will be added in the future.

Tim203 avatar May 24 '20 16:05 Tim203

Hello! Any updates on this? Thanks :)

lululombard avatar Aug 16 '20 17:08 lululombard

Not yet, but I didn't forget it.

Tim203 avatar Aug 16 '20 17:08 Tim203

There is now an option in Floodgate 2.0 which allows you to only allow linked accounts on your server. Does this fulfill your feature request?

Tim203 avatar Apr 03 '21 19:04 Tim203

What happens if it's required and someone joins the Bedrock server without a linked account? How do they link it then?

Phoenix616 avatar Apr 03 '21 19:04 Phoenix616

What happens if it's required and someone joins the Bedrock server without a linked account? How do they link it then?

The default linking option in Floodgate 2.0 is using the Global Link Server, which they connect to beforehand

Konicai avatar Apr 03 '21 19:04 Konicai

I'm closing this as I don't see the ideal situation described in this issue being implemented. However, the alternative (blocking non-linked accounts from joining) has been implemented.

Tim203 avatar Nov 23 '22 09:11 Tim203