GeoNetAgent, LDAPWeb, server-audit, server-connection
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
713 B

<?php
require '/var/www/html/vendor/autoload.php';
$app = require '/var/www/html/bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$spec = App\Support\OpenApiSpec::build();
$paths = array_keys(array_filter(
$spec['paths'] ?? [],
fn ($p) => str_contains($p, 'project-search'),
ARRAY_FILTER_USE_KEY
));
$scopes = $spec['components']['securitySchemes']['oauth2ClientCredentials']['flows']['clientCredentials']['scopes'] ?? [];
echo json_encode([
'project_search_paths' => array_values($paths),
'has_scope' => array_key_exists('project-search:read', $scopes),
'oauth_client_id' => config('project_search.oauth_client_id'),
], JSON_PRETTY_PRINT) . "\n";