Closed nmanthena18 closed 1 year ago
Will you send logs? Yes
Not seeing any logs
Here are the server logs.
As per the template, we care about client logs, not server logs.
Sure I will provide in shot
Here is client logs for user login with token:
Something seems missing in those logs, normally the app should log what authentication flows are available, can you please follow the instructions in the template to send logs properly, OR alternatively retry with your browser devtools network tab open, and share the response to the failing /_matrix/client/unstable/keys/device_signing/upload
request.
@t3chguy - here is the failed upload API details
Request URL: https://myserver.com/_matrix/client/unstable/keys/device_signing/upload
Request Method: POST
Status Code: 401 Unauthorized
Payload:
{}
Response
{"session":"HYfgMLZCkOzeQwGwuqfcuBkK","flows":[],"params":{}}
Request URL: https://myserver.com/_matrix/client/unstable/keys/device_signing/upload
Request Method: POST
Status Code: 401 Unauthorized
Payload:
{"master_key":{"user_id":"@naresh.mmm:myserver.com","usage":["master"],"keys":{"ed25519:OPzN+CHVdzpw3UJVB5cSq4RSG0WI9rWaEMREELZWYiE":"OPzN+CHVdzpw3UJVB5cSq4RSG0WI9rWaEMREELZWYiE"},"signatures":{"@naresh.mmm:myserver.com":{"ed25519:ZCACDUFMKC":"k/GGCzKb08fraEuokTNKcE1JaR5e6uRpjvAxwuzMJFJzApKUKQ/ZhqHZCsDZ+cXi+2jS1rETw2Rc1PDcFZKvDA"}}},"self_signing_key":{"user_id":"@naresh.mmm:myserver.com","usage":["self_signing"],"keys":{"ed25519:fducwf9nWlSTZJtCImP1zCWdaHzLQcCnx3jcveJNKAk":"fducwf9nWlSTZJtCImP1zCWdaHzLQcCnx3jcveJNKAk"},"signatures":{"@naresh.mmm:myserver.com":{"ed25519:OPzN+CHVdzpw3UJVB5cSq4RSG0WI9rWaEMREELZWYiE":"WCl5+TyYbNCIzdt2JLkCTrJh6jA11DRq2o4XV94QDp97SvfnlzuhyPbT6x0a6L1Ovw1JZaF12T3Y4/PHQ4bfBA"}}},"user_signing_key":{"user_id":"@naresh.mmm:myserver.com","usage":["user_signing"],"keys":{"ed25519:+SDWORSS6hD/tUn2lU/n1ba7pGw+med6JlWJKVqY0Ns":"+SDWORSS6hD/tUn2lU/n1ba7pGw+med6JlWJKVqY0Ns"},"signatures":{"@naresh.mmm:myserver.com":{"ed25519:OPzN+CHVdzpw3UJVB5cSq4RSG0WI9rWaEMREELZWYiE":"RuDqvYVqluvDwQzmpfSnOAuGy9FxOtExZ66ru2LRuPLvoovNxThpSvA17e0f21Elzff1PxNFfkgCxG6ek+WWCw"}}},"auth":{}}
Response:
{"session":"wySqVQwFmmnYSOoAzLyqgoBv","flows":[],"params":{}}
Thanks for that
Your server is doing something which makes no sense, its saying 401 Unauthorized, telling the client to perform additional flows, then saying there are 0 flows. I suggest opening an issue with Synapse given this is not only not spec compliant but also illogical.
@t3chguy
When I check flow I am getting below flow from the synapse server.
http://localhost:8082/_matrix/client/r0/login
{"flows":[{"type":"org.matrix.login.jwt"},{"type":"m.login.password"},{"type":"m.login.application_service"}]}
Login flows and UIA flows are not the same thing.
https://spec.matrix.org/v1.7/client-server-api/#user-interactive-authentication-api
The 401 the server sent puts the API into UIA, requiring additional flows to be completed to proceed.
@t3chguy - thanks for help!
Steps to reproduce
Login with JWT having issue, to decrypt the chat history unable to set up secure backup and giving error "No appropriate authentication flow found"
Outcome
What did you expect?
Since I am using JWT login flow, setup keys should be happen same as SSO, but here its not happened
What happened instead?
I want use jwt flow and my all messages should decrypt all the devices when I logged in.
Operating system
in All
Application version
1.11.33
How did you install the app?
https://chat.intellaire.com/#/home
Homeserver
latest
Will you send logs?
Yes