-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Failed to Refresh Account #163
Comments
oh nevermind seems you can already logout on the linux branch, are there any issues that prevent refreshing the accounts? |
@JWhitmore1 is also getting this issue, and I've gotten it occasionally. Still not really sure what causes it to happen. It's likely related to the login system not really being synchronised so maybe if two refreshes happen at once it breaks? How often does this happen for you? |
happened twice so far, a quick logout seemed to fix it |
I think the best course of action would be for me to add a bunch of debugging logs to investigate potential causes. That way when it happens again the person who it happened to can hopefully send me some logs. I really need to implement a proper log file system... |
oh yeah, for sure that’s probably better! proper logging would be great especially for fixing bugs like this :) |
I'll try and get a file logging system working today 🤞 |
It looks like I did already add some logging in the past, and I just ran into this issue as well. Here's the error returned from the Microsoft API: {
"error": "invalid_scope",
"error_description": "AADSTS70011: The provided value for the input parameter 'scope' has not been pre-authorized for this client application.\r\nTrace ID: 492b2dc9-fc89-4897-9bc2-f6a38ec71c00\r\nCorrelation
ID: 0185fd6b-02ef-45d6-a3dc-dd27935a91be\r\nTimestamp: 2023-01-17 04:02:14Z",
"error_codes": [70011],
"timestamp": "2023-01-17 04:02:14Z",
"trace_id": "492b2dc9-fc89-4897-9bc2-f6a38ec71c00",
"correlation_id": "0185fd6b-02ef-45d6-a3dc-dd27935a91be"
} This is the scope that it's referring to in the error: Not exactly sure what this means yet |
I've implemented log files now 🎉 and you can even use the |
nice! |
Had the issue again, the logs reported the following:
so basically the same as what you find before D: |
This seems to happen consistently whenever delta client attempts to refresh the user's Microsoft account. I tried changing the scope in the refresh request to match the scope we use in the initial authentication request, but to no avail. Might be worth looking at around at a few other Minecraft authentication implementations to see what they do (e.g. bixilon's Minosoft). |
there are refrsh tokens at every stage. minosofts attempt works fine, even after months
…On May 29, 2024 2:18:21 PM GMT+02:00, stackotter ***@***.***> wrote:
This seems to happen consistently whenever delta client attempts to refresh the user's Microsoft account. I tried changing the scope in the refresh request to match the scope we use in the initial authentication request, but to no avail. Might be worth looking at around at a few other Minecraft authentication implementations to see what they do (e.g. bixilon's Minosoft).
--
Reply to this email directly or view it on GitHub:
#163 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Yeah, I know that it's meant to work 😅 What do you mean by refresh tokens at every stage? As in there are refresh tokens for every single step of the authentication (which would be a bit weird) or there are refresh tokens every time that you make a request (pretty sure that delta client should be handling those fine but worth double checking). Just left the above comment in case anyone looks into it, cause I'm not looking into it at the moment; working on block breaking and inventory stuff. |
so, normally u use the auth token. Every auth token has an expire date (which is sent in the api too). If it expired, you need to refresh both tokens using the provided refresh token. if that is expired/broken you can will go one step back in the whole pipeline (with auth/refresh token).
(my brain): oauth login -> msa login -> xbox login -> minecraft
|
Hm yeah makes sense, I vaguely remember you saying something like that, perhaps we've already talked about the exact same issue on a call one time lol |
Sometimes if you've been playing for a while it will fail to refresh your Minecraft account, a temporary fix could be to add a logout option but probably better to find a more reliable way to refresh accounts :D
The text was updated successfully, but these errors were encountered: