PHP code example of jiangslee / socialite-provider-dingtalk

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

    

jiangslee / socialite-provider-dingtalk example snippets


'dingtalk' => [    
  'client_id' => env('DINGTALK_CLIENT_ID'),  
  'client_secret' => env('DINGTALK_CLIENT_SECRET'),  
  'redirect' => env('DINGTALK_REDIRECT_URI') 
],

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

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