15 lines
No EOL
371 B
PHP
15 lines
No EOL
371 B
PHP
<?php
|
|
// backend/config_client.php
|
|
require_once 'config.php';
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
// Return only the client-safe configuration
|
|
$config = [
|
|
'azure_client_id' => getenv('AZURE_CLIENT_ID'),
|
|
'azure_tenant_id' => getenv('AZURE_TENANT_ID'),
|
|
'redirect_uri' => 'http://localhost:3000/' // MAMP server redirect
|
|
];
|
|
|
|
echo json_encode($config);
|
|
?>
|