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

Microsoft login issue #2302

Open
1 task done
Trial97 opened this issue Apr 12, 2024 · 25 comments
Open
1 task done

Microsoft login issue #2302

Trial97 opened this issue Apr 12, 2024 · 25 comments
Labels
Auth Problems with Microsoft authentication bug Something isn't working

Comments

@Trial97
Copy link
Member

Trial97 commented Apr 12, 2024

Operating System

Other

Version of Prism Launcher

Any version

Version of Qt

Any version

Description of bug

For some reason, you can't log in to your Microsoft account or the account refresh fails in some way.

Steps to reproduce

Try to log in using prism

Suspected cause

Here are some solutions:

  • disable any firewalls that may block the traffic between Primslauncher and Microsoft (same with proxies)
  • for the GitHub account try to log in manually on the web and set a separate password for the Microsoft account then once you login into Prism make sure that you try to log in using the password, not the GitHub.
  • ensure that you are not considered under-age by the Microsoft(check account age)
  • ensure that you sign in using a password: Sign in to https://account.live.com/proofs/manage/additional and add a password as a way to sign in
  • disable ipv6

from: #2302 (comment)

  • Change your Microsoft account password.
  • Disable all DNS filters/ad blockers.
  • Use a different network.

from #2302 (comment):

  • disable VPN

from discord: https://discord.com/channels/1031648380885147709/1233086262097743923/1233423221274050611

  • follow the next steps
    • navigate to https://account.live.com/consent/Manage
    • Make sure to log in using the account where you have your issue
    • Find Prism Launcher -> Edit -> Remove these permissions
    • Do the login with Prism Launcher again and see if that fixes it

from discord: https://discord.com/channels/1031648380885147709/1232940241137045544/1232941891910369281

  • reboot your PC

for debugging( if none of the above worked):

Data directories
Where Prism Launcher stores your data (e.g. instances).
Portable (Windows / Linux)
In the PrismLauncher folder
Windows
%APPDATA%/PrismLauncher
Scoop
%HOMEPATH%\scoop\persist\prismlauncher
macOS
~/Library/Application Support/PrismLauncher
Linux
~/.local/share/PrismLauncher
Flatpak
~/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher

And as a last measure:

  • be patient. The issue may be temporary with Microsoft servers or it may unstuck itself( discord)

This issue is unique

  • I have searched the issue tracker and did not find an issue describing my bug.
@notlin4
Copy link

notlin4 commented Apr 21, 2024

Here are some other solutions:

  • Change your Microsoft account password. (Switch back later.)
  • Use the Legacy version (Qt 5). Since Qt 5 support was removed in version 8.0, you'll need to use 7.2.
  • Disable all DNS filters/ad blockers.
  • Use a different network.

@rprije
Copy link

rprije commented Apr 22, 2024

  • Use a different network.

Thank you, this appears to have done the trick for me. I switched from my house network to my mobile phone hotspot and was able to add the account.

@Ego-Matthisum
Copy link

Here is another solution that works with Github accounts

  1. After clicking Add Microsoft and clicking next, don't enter your username/E-Mail but click Sign-in options
  2. Choose Forgot Username and enter te E-Mail adress associated with your account and click next
  3. You should receive a one-time passcode to your E-Mail, enter the code and continue
  4. You should now be able too connect PrismLauncher

@rprije
Copy link

rprije commented May 14, 2024

  • Use a different network.

Thank you, this appears to have done the trick for me. I switched from my house network to my mobile phone hotspot and was able to add the account.

Adding more colour to this in case it helps anyone else: this appears to be also fixed on my house network now and I the only change and likely fix was an enabling of IPv6.

@DioEgizio
Copy link
Member

For people that have issues with this, now that #2402 is merged, can you try a devbuild (see https://prismlauncher.org/wiki/development/development-builds/ ) and see if it still happens?

@DioEgizio
Copy link
Member

Use the Legacy version (Qt 5). Since Qt 5 support was removed in version 8.0, you'll need to use 7.2.

That's terrible advice, don't recommend that

@notlin4
Copy link

notlin4 commented May 18, 2024

That's terrible advice, don't recommend that

May I ask why?

@Imzxhir
Copy link

Imzxhir commented May 18, 2024

For people that have issues with this, now that #2402 is merged, can you try a devbuild (see prismlauncher.org/wiki/development/development-builds ) and see if it still happens?

The devbuild didn't work for me. I used the build from this GitHub Action.

@Trial97
Copy link
Member Author

Trial97 commented May 18, 2024

The devbuild didn't work for me. I used the build from this GitHub Action.

Then can you provide logs as mentioned here #2302 (comment) at the section for debugging

@Imzxhir
Copy link

Imzxhir commented May 18, 2024

I must of skimmed over that section, that's my bad. Anyway, here are the logs that you have asked for: https://mclo.gs/F5muMTI

@Trial97
Copy link
Member Author

Trial97 commented May 18, 2024

I added that section recently so is not your fault.
Regarding your issue it looks like you closed the launcher before it could get the reply from Microsoft.
Can you try again but this time go to Manage Accounts page (in settings) and wait until the status of the account is not Working then upload the logs again(if is the status is Ready that means it's working and you should try to play).

@Imzxhir
Copy link

Imzxhir commented May 18, 2024

I only closed the launcher because I saw this message (shown below). Here are my updated logs: https://mclo.gs/erR6toC

image

@Trial97
Copy link
Member Author

Trial97 commented May 18, 2024

Then that means that something is closing the connection between prism and https://xsts.auth.xboxlive.com/xsts/authorize.
Try to see if something is blocking the xbox services API on your computer.
Other than that I have no idea: code-wise we do not close that connection ourselves at all so it must be something external of prism.

@Imzxhir
Copy link

Imzxhir commented May 18, 2024

Nothing seems to be blocking https://xsts.auth.xboxlive.com/xsts/authorize on my end, I am not sure on what else I could try.

@DioEgizio DioEgizio mentioned this issue May 18, 2024
1 task
@Trial97
Copy link
Member Author

Trial97 commented May 18, 2024

Ok found another thing but is not configurable right now: we have a timeout for the request for about 30s.
Gonna look into making that configurable.

@DioEgizio
Copy link
Member

Ok found another thing but is not configurable right now: we have a timeout for the request for about 30s. Gonna look into making that configurable.

Maybe we could make it longer by default?

@Trial97
Copy link
Member Author

Trial97 commented May 18, 2024

@Imzxhir can you try the following build: https://github.com/PrismLauncher/PrismLauncher/actions/runs/9141953861?pr=2415 I just added the timeout as a config option and set it to 60s (the setting is named Transfer timeout on the page for Launcher settings

@Imzxhir
Copy link

Imzxhir commented May 18, 2024

Still didn't work. Here are my logs: https://mclo.gs/o3DEfyU

@Trial97
Copy link
Member Author

Trial97 commented May 18, 2024

Set the transfer timeout to 0 and pray as that is the last thing I can think of.

@Imzxhir
Copy link

Imzxhir commented May 18, 2024

I don't think it worked. I have been stuck on this message (shown below) for a while now.

10186

@Trial97
Copy link
Member Author

Trial97 commented May 18, 2024

0 means that Prism will never automatically timeout the request so now we wait for the request to finish(or at least fail from the Microsoft side). but other than that there is nothing I can do.

@Imzxhir
Copy link

Imzxhir commented May 18, 2024

Oh, I see.

@Mohl97
Copy link

Mohl97 commented May 21, 2024

Here's another log, surprised such a major bug has lasted this long without a proper fix.
https://mclo.gs/FsLpnWm

@Trial97
Copy link
Member Author

Trial97 commented May 21, 2024

Here's another log, surprised such a major bug has lasted this long without a proper fix. https://mclo.gs/FsLpnWm

it is the same as Imzxhir but for you, it times out at https://api.minecraftservices.com/launcher/login(all the suggestions applies to this to)
And this is not a bug in our code per see as it can have multiple causes(see first comment on this issue)

@ZeDarkOne
Copy link

Anyone here using a vpn when trying to add account or play? Disabling my VPN fixed my issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auth Problems with Microsoft authentication bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants