Add read to scopes in obtain-token example.

Without that, we cannot very our credentials. Mastodon needs
read::accounts, Pleroma needs read.
This commit is contained in:
tastytea 2020-11-13 12:55:07 +01:00
parent e563731efe
commit 41f470d2aa
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -57,7 +57,9 @@ int main(int argc, char *argv[])
// Create an “Application” (/api/v1/apps),
// and get URI for the authorization code (/oauth/authorize).
auto answer{token.step_1("Testclient", "read:blocks read:mutes",
// NOTE: Mastodon only needs read:accounts for verify_credentials but
// Pleroma needs the full read scope.
auto answer{token.step_1("Testclient", "read write:favourites",
"https://example.com/")};
if (!answer)
{