1. Go to this page and download the library: Download onelabs/xguard-client 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/ */
public function redirect()
{
return Socialite::driver('xguard')->redirect();
}
public function callback(Request $request)
{
$ssoUser = Socialite::driver('xguard')->user();
// ... your logic
}