Create a gist now

Instantly share code, notes, and snippets.

Laravel53-passport-client-routes
Route::get('/redirect', function () {
$query = http_build_query([
'client_id' => '5',
'redirect_uri' => 'http://Laravel53-passport-client.dev/callback',
'response_type' => 'code',
'scope' => 'Facebook_information GitHub_information', //加上 scopes
]);
return redirect('http://Laravel53-passport-server.dev/oauth/authorize?'.$query);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment