hyperspacedev / hyperspace

The new beautiful, fluffy client for Mastodon in React + TypeScript
https://hyperspace.marquiskurt.net
Other
183 stars 27 forks source link

Malformed app request on qoto.org #237

Open alicerunsonfedora opened 3 years ago

alicerunsonfedora commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

Hyperspace appears to be unable to connect to qoto.org.

To Reproduce Steps to reproduce the behavior:

  1. Type test@qoto.org into the text field.
  2. Press Return or click "Next".
  3. See the request failure error.

Expected behavior A clear and concise description of what you expected to happen.

The user should be able to continue into the login process.

Screenshots If applicable, add screenshots to help explain your problem.

App Information (please complete the following information):

Additional context Add any other context about the problem here.

Per the thread on the general chat (Matrix-side) with walkmanyi:

Marquis Kurt: I spoke to qoto.org admin and we concluded that this probably is indeed a client-side bug. qoto.org behaves identically to e.g., mastodon.social according to the spec you posted above. See below:

Request to mastodon.social:

$ curl -X POST -d '{"client_name": "Hyperspace", "redirect_uris": "urn:ietf:wg:oauth:2.0:oob"}' -H 'Content-Type: application/json' "https://mastodon.social/api/v1/apps"
{"id":"801469","name":"Hyperspace","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"CMQfDcPTHBChVV7Xxzy11fPc6M4Fp3iMKPsP12FFE4o","client_secret":"XncANW8WefPTqwr4rvTjFuQJc3pXhljqogivro3s-gw","vapid_key":"BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M="}

Request to qoto.org:

$ curl -X POST -d '{"client_name": "Hyperspace", "redirect_uris": "urn:ietf:wg:oauth:2.0:oob"}' -H 'Content-Type: application/json' "https://qoto.org/api/v1/apps"
{"id":"8681","name":"Hyperspace","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"pM9nqNfZ8YX9nfgNGIA5l72qp_WZ_VDFiUbEia0xiic","client_secret":"QiubwkLpK6ewVOr7PX2RNVhGCIjScA--d5t1kcKXn3w","vapid_key":"BPVYDsCiOsPbH2YqPelZzlcYYiXfzE3ING8WYq0ZGYL5KMplYRO9605LfLOfrxjwKUmtyLyvhummO97ce0sgduE="}
alicerunsonfedora commented 3 years ago

Notes: This may be an upstream library issue with Megalodon.

Checklist

seachdamh commented 3 years ago

Any progress? On instance 101010.pl is same bug it look like.

`curl -X POST -d '{"client_name": "Hyperspace", "redirect_uris": "urn:ietf:wg:oauth:2.0:oob"}' -H 'Content-Type: application/json' "https://101010.pl/api/v1/apps"

{"id":"1741","name":"Hyperspace","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"GKLR24yRkDKO0zvvIQTE_7ImD-GGXVXhHSZ5SSDj4uo","client_secret":"jWtsKzFePQ7SAL4QFLQ7aYxg_GOq6WB1PXhTd1-jaPI","vapid_key":"BPsTKOQSzT0VQkmndbn1xhcUuKOgXdEt95MeeWgUYeK2Gxlc9CRsDQ-ofyGWcdisj4AOlz1NQ_HdNJwEru5Yadw="}`

alicerunsonfedora commented 3 years ago

There has been no progress made. See #232 .