PHP code example of uptime-development / laravel-socialite-criipto
1. Go to this page and download the library: Download uptime-development/laravel-socialite-criipto library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uptime-development / laravel-socialite-criipto example snippets
'criipto' => [
'base_uri' => env('CRIIPTO_URI'),
'client_id' => env('CRIIPTO_CLIENT_ID'),
'client_secret' => env('CRIIPTO_CLIENT_SECRET'),
'redirect' => env('CRIIPTO_REDIRECT_URI'),
],
Route::get('/auth/redirect', function () {
return Socialite::driver('criipto')
->with(['acr_values' => 'urn:grn:authn:dk:mitid:low'])
->redirect();
});
Route::get('/auth/callback', function () {
$user = Socialite::driver('criipto')->user();
dd($user);
});