Skip to content

Instantly share code, notes, and snippets.

@Maras0830
Last active December 23, 2016 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maras0830/edc386a4de05e564db5dd5b7d211d88f to your computer and use it in GitHub Desktop.
Save Maras0830/edc386a4de05e564db5dd5b7d211d88f to your computer and use it in GitHub Desktop.
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