Issue 4 - Specify scopes for authorization

We were requesting read, write, and follow for the app, but not
for the user authorization. I've added these scopes to the oauth
redirect when logging in.
This commit is contained in:
St John Karp 2019-03-16 10:37:53 +00:00
parent 623a94d434
commit 9a0fb86099
2 changed files with 12 additions and 10 deletions

View File

@ -70,7 +70,9 @@ class LoginController extends Controller
session(['client_secret' => $client_secret]);
# Redirect the user to their instance to log in.
return Socialite::driver('mastodon')->redirect();
return Socialite::driver('mastodon')
->setScopes(config('services.mastodon.scope', config('services.mastodon.scopes')))
->redirect();
}
/**