Skip to content
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

Client creation sends invalid scope data #78

Closed
Elleo opened this issue Dec 24, 2022 · 1 comment · Fixed by #79
Closed

Client creation sends invalid scope data #78

Elleo opened this issue Dec 24, 2022 · 1 comment · Fixed by #79

Comments

@Elleo
Copy link
Contributor

Elleo commented Dec 24, 2022

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
Copy link

Thanks for your contribution! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant