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:
parent
e563731efe
commit
41f470d2aa
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user