Last active
December 23, 2016 09:24
-
-
Save Maras0830/edc386a4de05e564db5dd5b7d211d88f to your computer and use it in GitHub Desktop.
Laravel53-passport-client-routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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