PHP code example of mrstebo / socialite-provider-ekm

1. Go to this page and download the library: Download mrstebo/socialite-provider-ekm 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/ */

    

mrstebo / socialite-provider-ekm example snippets


'ekm' => [
  'client_id' => env('EKM_CLIENT_ID'),
  'client_secret' => env('EKM_CLIENT_SECRET'),
  'redirect' => env('EKM_REDIRECT_URI'),
  'scopes' => [
      'openid',
      'profile',
      // Additional scopes
  ]
],

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

return Socialite::driver('ekm')
            ->with(['prompt' => 'login'])
            ->scopes(config('services.ekm.scopes'))
            ->redirect();