mastodon-dart / mastodon-api

This library provides the easiest and powerful Dart/Flutter library for Mastodon API 🎯
http://pub.dev/packages/mastodon_api
BSD 3-Clause "New" or "Revised" License
64 stars 13 forks source link

Client creation sends invalid scope data #78

Closed Elleo closed 1 year ago

Elleo commented 1 year ago

Currently when calling createApplication scopes are converted to a list, which is then json encoded (e.g. ["read", "write", "push"]). However, Mastodon expects a space-delimited string of scopes ("read write push"). The Mastodon server then just assigns the default "read" scope to the application. Attempts to authenticate with more scopes than "read" result in the Mastodon server responding with: "The requested scope is invalid, unknown, or malformed."

github-actions[bot] commented 1 year ago

Thanks for your contribution! :)