3arthqu4ke / headlessmc

Minecraft on the command line
https://3arthqu4ke.github.io/headlessmc/
MIT License
142 stars 16 forks source link

Cant login with microsoft? #38

Closed Tripp1e closed 1 year ago

Tripp1e commented 1 year ago

me.earth.headlessmc.launcher.auth.AuthException: Invalid credentials or tokens at me.earth.headlessmc.launcher.auth.AccountManager.login(AccountManager.java:62) at me.earth.headlessmc.launcher.command.login.LoginCommand.lambda$login$0(LoginCommand.java:56) at me.earth.headlessmc.launcher.command.login.PasswordCommand.execute(PasswordCommand.java:35) at me.earth.headlessmc.launcher.command.login.PasswordContext.fail(PasswordContext.java:37) at me.earth.headlessmc.command.CommandContextImpl.execute(CommandContextImpl.java:37) at me.earth.headlessmc.command.line.ConsoleListener.listen(ConsoleListener.java:22) at me.earth.headlessmc.command.line.CommandLineImpl.listen(CommandLineImpl.java:26) at me.earth.headlessmc.launcher.Main.runHeadlessMc(Main.java:90) at me.earth.headlessmc.launcher.Main.main(Main.java:35)

This is what I get

Tripp1e commented 1 year ago

please help, I still cant find the error

3arthqu4ke commented 1 year ago

have you tried the command like this: login yourEmail yourPassword? Did you double check that your credentials are correct? Can you login via your browser and have you checked the credentials there?

Tripp1e commented 1 year ago

Yes I have. My credentials are correct. Is there maybe a problem with 2FA?

3arthqu4ke commented 1 year ago

That is all I can do, works for me.

Tripp1e commented 1 year ago

On the website, it says successful login, but when you look at session activity it says additional review requested (may not be exactly that I just translated it) and when i try login -webview it just crashes the entire thing

Tripp1e commented 1 year ago

login -webview Starting web view... java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel at fr.litarvan.openauth.microsoft.MicrosoftAuthenticator.loginWithAsyncWebview(MicrosoftAuthenticator.java:159) at fr.litarvan.openauth.microsoft.MicrosoftAuthenticator.loginWithWebview(MicrosoftAuthenticator.java:145) at me.earth.headlessmc.launcher.auth.AccountManager.loginWithWebView(AccountManager.java:69) at me.earth.headlessmc.launcher.command.login.LoginCommand.loginWithWebView(LoginCommand.java:75) at me.earth.headlessmc.launcher.command.login.LoginCommand.execute(LoginCommand.java:25) at me.earth.headlessmc.command.CommandContextImpl.executeCommand(CommandContextImpl.java:43) at me.earth.headlessmc.command.CommandContextImpl.execute(CommandContextImpl.java:30) at me.earth.headlessmc.command.line.ConsoleListener.listen(ConsoleListener.java:22) at me.earth.headlessmc.command.line.CommandLineImpl.listen(CommandLineImpl.java:26) at me.earth.headlessmc.launcher.Main.runHeadlessMc(Main.java:90) at me.earth.headlessmc.launcher.Main.main(Main.java:35) Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ... 11 more

This is the crashlog

3arthqu4ke commented 1 year ago

-webview needs a jdk like jdk 8.

Tripp1e commented 1 year ago

I had jdk 17 set as JAVA_HOME and JAVA_PATH, so after I set it to 1.8, It wouldnt crash anymore, but now it opens a blank window titled Microsoft Authentication

3arthqu4ke commented 1 year ago

It should only be blank for a second or so?

Tripp1e commented 1 year ago

I left it open for like 5 minutes and nothing happened

RaisingAgent commented 1 year ago

this is still broken