McKael / madonctl

CLI client for the Mastodon social network API
MIT License
193 stars 9 forks source link

OAuth to Pleroma doesn't work due to missing parameters #27

Open rjp opened 1 year ago

rjp commented 1 year ago

Calling madonctl oauth2 get-url -i pleroma doesn't work because:

Error: app registration failed: API query (v1/apps) failed: bad server status code (400): Missing field: client_name. Missing field: redirect_uris.

Which is down to it being a POST request with the parameters in the URL, not in the body. But this is easy to fix and means madonctl can now get-url and then code to get an access_token from Pleroma, Mastodon, and GotoSocial (except GTS needs the other fix for non-int64 IDs first.)

lilmike commented 1 year ago

Any news on this?

rjp commented 1 year ago

Oh, bother, yes, this was fixed in madon a while back and madonctl will have inherited that. Just tested it and it's working fine on my Akkoma instance.