Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Authentication Function #1025

Open
vlouboos opened this issue Jul 27, 2022 · 9 comments
Open

Custom Authentication Function #1025

vlouboos opened this issue Jul 27, 2022 · 9 comments

Comments

@vlouboos
Copy link

Is your feature request related to a problem? Please describe.
I can't join some servers which use non-vanilla auth

Describe the solution you'd like
Add an interface to use own auth-server, like custom auth-lib.
Or just simply forward the authentication-packet(hand_shake, login_start)

@kashalls
Copy link
Contributor

What authentication are you talking about? Are you referring to #572 ?

@vlouboos
Copy link
Author

Including but also others, like some mc-launchers build a local server for auth when logging in servers, clients call the servers before sending the hand_shake packet, the game profile is returned from the server.
The most effective way is to forward the hand_shake and login_start packet to the target server in order to prevent unsupported auth.

@vlouboos
Copy link
Author

vlouboos commented Jul 27, 2022

Another way, use 'authlib.jar' for auth, then give an interface for us to custom using authlib

@kashalls
Copy link
Contributor

I'm against directly putting it minecraft-protocol but I can look into adding an interface for you to do your own authentication. It can be as simple as making auth available as a function so that if you don't set Microsoft or offline, you can handle it your way. Let me look into it.

@rob9315
Copy link
Contributor

rob9315 commented Jul 27, 2022

Add an interface to use own auth-server

i can get behind this, there should also be an easy option for using yggdrasil-compatible ('mojang') auth servers by setting the custom /auth endpoint url.

Another way, use 'authlib.jar' for auth, then give an interface for us to custom using authlib

this will not turn into a wrapper of authlib, it's been completely java-free so far and will stay that way

@kashalls
Copy link
Contributor

Add an interface to use own auth-server

i can get behind this, there should also be an easy option for using yggdrasil-compatible ('mojang') auth servers by setting the custom /auth endpoint url.

Another way, use 'authlib.jar' for auth, then give an interface for us to custom using authlib

this will not turn into a wrapper of authlib, it's been completely java-free so far and will stay that way

You can set session server in the client options to change the session server.

@rob9315
Copy link
Contributor

rob9315 commented Jul 27, 2022

no, that doesn't work because it's not forwarded to yggdrasil

@rob9315
Copy link
Contributor

rob9315 commented Jul 27, 2022

yes, it is, but there is no option for servers

@kashalls
Copy link
Contributor

60379eb Solves original issue by exposing an auth function for non-official auth services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants