Skip to content

Instantly share code, notes, and snippets.

@JeroenJochems
Created November 28, 2016 12:56
Show Gist options
  • Save JeroenJochems/c63b99a2d7dde62f87c9aabe7872d4ce to your computer and use it in GitHub Desktop.
Save JeroenJochems/c63b99a2d7dde62f87c9aabe7872d4ce to your computer and use it in GitHub Desktop.
Authorization code
Route::get('/', function () {
$query = http_build_query([
'client_id' => 3,
'redirect_uri' => 'http://l1nda.nl/callback',
'response_type' => 'code',
'scope' => 'read write'
]);
return redirect('http://dev1.temper.works/oauth/authorize?'.$query);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment