-
Notifications
You must be signed in to change notification settings - Fork 270
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
"Missing access token" in Client.display_name in some instances (gnome.modular.im) #488
Comments
EDIT: Oh, I guess the method you're talking about doesn't have a Unfortunately the Matrix spec doesn't really have the concept of "may require authentication on some servers". Until that is implemented, you can use |
Thanks for the reply, I've added the This fixes the issue when restoring a previous session, but in the call to
|
Sounds like |
It looks like the force_auth is working correctly when restoring the session, but it's not working with the call to client.login, so it cannot be used. The access_token is not available in the login query, so if the option force_auth is set, this call will fail always. This patch just ignores the force_auth if there's no session, so any query will work when force_auth is true. This change fixes the problem reported here: matrix-org#488
It looks like the force_auth is working correctly when restoring the session, but it's not working with the call to client.login, so it cannot be used. The access_token is not available in the login query, so if the option force_auth is set, this call will fail always. This patch just ignores the force_auth if there's no session, so any query will work when force_auth is true. Fix matrix-org#488
It looks like the force_auth is working correctly when restoring the session, but it's not working with the call to client.login, so it cannot be used. The access_token is not available in the login query, so if the option force_auth is set, this call will fail always. This patch just ignores the force_auth if there's no session, so any query will work when force_auth is true. Fix matrix-org#488
It looks like the force_auth is working correctly when restoring the session, but it's not working with the call to client.login, so it cannot be used. The access_token is not available in the login query, so if the option force_auth is set, this call will fail always. This patch just ignores the force_auth if there's no session, so any query will work when force_auth is true. Fix matrix-org#488
The call to Client.display_name always return a 401 if the server requires authentication for profiles.
Describe the solution you'd like
It should be possible to provide the access token to this call.
Additional context
This is failing for gnome.modular.im instance, Fractal cannot get the user display name because of this.
https://gitlab.gnome.org/GNOME/fractal/-/issues/934
The text was updated successfully, but these errors were encountered: