mirror of https://git.stjo.hn/planiverse
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:
parent
623a94d434
commit
9a0fb86099
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue