PHP code example of kizeo / socialiteprovidersmicrosoft

1. Go to this page and download the library: Download kizeo/socialiteprovidersmicrosoft 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/ */

    

kizeo / socialiteprovidersmicrosoft example snippets


'microsoftadfs' => [    
  'client_id' => env('MICROSOFTADFS_CLIENT_ID'),  
  'client_secret' => env('MICROSOFTADFS_CLIENT_SECRET'),  
  'redirect' => env('MICROSOFTADFS_REDIRECT_URI'), 
  'base_uri' => env('MICROSOFTADFS_REDIRECT_URI') 
],

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'Kizeo\\ADFSSocialite\\MicrosoftADFSExtendSocialite@handle',
    ],
];

return Socialite::driver('microsoftadfs')->redirect();