PHP code example of skyracer2012 / iservsocialiteprovider

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

    

skyracer2012 / iservsocialiteprovider example snippets


'iserv' => [
  'base_uri' => env('ISERV_OID_URL'),
  'client_id' => env('ISERV_OID_CLIENT_ID'),
  'client_secret' => env('ISERV_OID_CLIENT_SECRET'),
  'redirect' => env('ISERV_OID_REDIRECT_URL'),
  'scopes' => [
    'openid',
    'profile',
    'email',
    'uuid'
  ],
]

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

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