This file contains hidden or 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
| define('API_HOST', 'http://temper.dev'); | |
| define('REDIRECT_URI', 'http://testje.dev/callback'); | |
| define('CLIENT_ID', 3); | |
| define('CLIENT_SECRET', '6eyVbcEDkC8AYTyq5WLkFGEDMjAnB9qVYaq12uxV'); | |
| Route::get('/', function () { | |
| $query = http_build_query([ | |
| 'client_id' => 3, | |
| 'redirect_uri' => REDIRECT_URI, |
This file contains hidden or 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('/', function () { | |
| $query = http_build_query([ | |
| 'client_id' => 3, | |
| 'redirect_uri' => 'http://testje.dev/callback', | |
| 'response_type' => 'code', | |
| 'scope' => 'read write' | |
| ]); | |
| return redirect('https://nostradamus:t3mp3r@dev2.temper.works/oauth/authorize?'.$query); | |
| }); |
This file contains hidden or 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
| $http = new GuzzleHttp\Client; | |
| $response = $http->post('https://l1nda:t3mp3r@dev1.temper.works/oauth/token', [ | |
| 'form_params' => [ | |
| 'grant_type' => 'password', | |
| 'client_id' => '3', | |
| 'client_secret' => 'QVPm9nGWGQJcgofqkpIvpEnOucWso0E1io4RhQgv', | |
| 'username' => 'client@example.net', | |
| 'password' => 'secret', | |
| 'scope' => '', |
This file contains hidden or 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('/', 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); | |
| }); |