PHP code example of wilford-woodruff-papers / laravel-socialite-familysearch
1. Go to this page and download the library: Download wilford-woodruff-papers/laravel-socialite-familysearch 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/ */
wilford-woodruff-papers / laravel-socialite-familysearch example snippets
'familysearch' => [
'base_uri' => env('FAMILYSEARCH_BASE_URI'),
'base_auth_uri' => env('FAMILYSEARCH_AUTH_BASE_URI'),
'client_id' => env('FAMILYSEARCH_CLIENT_ID'),
'client_secret' => env('FAMILYSEARCH_CLIENT_SECRET'),
'redirect' => env('FAMILYSEARCH_REDIRECT_URI'),
],
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
\SocialiteProviders\FamilySearch\FamilySearchExtendSocialite::class.'@handle',
],
];
return Socialite::driver('familysearch')->redirect();