PHP code example of chornthorn / wso2-is

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

    

chornthorn / wso2-is example snippets


'wso2is' => [
  'client_id' => env('WSO2IS_CLIENT_ID'),
  'client_secret' => env('WSO2IS_CLIENT_SECRET'),
  'redirect' => env('WSO2IS_REDIRECT_URI'),
  'base_url' => env('WSO2IS_BASE_URL'),
],

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

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