1. Go to this page and download the library: Download quadcompanies/quadsso 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/ */
quadcompanies / quadsso example snippets
protected $fillable = [
'email',
'password',
'scim_external_id',
'email_verified_at',
'status', // or whatever field you use for user status
'name_first',
'name_last',
'name_middle',
'phone_cell',
'email_secondary',
// ... other fields
];
'scim' => [
'user_status_field' => 'status', // Your User model's status field
'active_status_value' => 'active', // Value that means "active"
'blocked_status_value' => 'blocked', // Value that means "blocked"
'invalidate_sessions_on_block' => true, // Kill sessions when user is blocked
],
'scim' => [
'allow_user_creation' => true, // Allow creating new users via SCIM
'allow_user_updates' => true, // Allow updating existing users via SCIM
'allow_user_deletion' => true, // Allow blocking users via SCIM (active=false)
],
'sso' => [
'enable_jit_provisioning' => true, // Automatically create users on first SSO login
],
'field_mappings' => [
'email' => 'email',
'external_id' => 'scim_external_id',
'email_verified_at' => 'email_verified_at',
// Enable extended name fields
'name_first' => 'name_first', // Changed from null
'name_last' => 'name_last', // Changed from null
'name_middle' => 'name_middle', // Changed from null
'name' => null, // Disable single name field
// Enable contact fields
'phone_cell' => 'phone_cell', // Changed from null
'email_secondary' => 'email_secondary', // Changed from null
],
namespace App\Scim;
use QuadCompanies\QuadSSO\Scim\QuadSSOScimConfig;
class CustomScimConfig extends QuadSSOScimConfig
{
// Override methods to add custom field mappings
}
use ArieTimmerman\Laravel\SCIMServer\SCIMConfig;
use App\Scim\CustomScimConfig;
public function register(): void
{
$this->app->bind(SCIMConfig::class, CustomScimConfig::class);
}