PHP code example of arietimmerman / laravel-scim-server
1. Go to this page and download the library: Download arietimmerman/laravel-scim-server 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/ */
arietimmerman / laravel-scim-server example snippets
return [
"publish_routes" => false
];
use ArieTimmerman\Laravel\SCIMServer\RouteProvider as SCIMServerRouteProvider;
SCIMServerRouteProvider::publicRoutes(); // Make sure to add public routes *first*
Route::middleware('auth:api')->group(function () { // or any other middleware you choose
SCIMServerRouteProvider::routes(
[
'public_routes' => false // but do not hide public routes (metadata) behind authentication
]
);
SCIMServerRouteProvider::meRoutes();
});
class YourCustomSCIMConfig extends \ArieTimmerman\Laravel\SCIMServer\SCIMConfig
{
public function getUserConfig()
{
$config = parent::getUserConfig();
// Modify the $config variable however you need...
return $config;
}