23 lines
817 B
PHP
23 lines
817 B
PHP
<?php
|
||
declare(strict_types=1);
|
||
|
||
session_start();
|
||
|
||
/**
|
||
* Load environment variables. If you don't use phpdotenv,
|
||
* copy the values from .env directly here.
|
||
*/
|
||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||
$dotenv->load();
|
||
|
||
/**
|
||
* Basic OIDC configuration – keep all secrets out of source‑control.
|
||
*/
|
||
define('OIDC_CLIENT_ID', getenv('OIDC_CLIENT_ID'));
|
||
define('OIDC_CLIENT_SECRET', getenv('OIDC_CLIENT_SECRET'));
|
||
define('OIDC_REDIRECT_URI', getenv('OIDC_REDIRECT_URI'));
|
||
define('OIDC_AUTH_ENDPOINT', getenv('OIDC_AUTH_ENDPOINT'));
|
||
define('OIDC_TOKEN_ENDPOINT', getenv('OIDC_TOKEN_ENDPOINT'));
|
||
define('OIDC_USERINFO_ENDPOINT', getenv('OIDC_USERINFO_ENDPOINT'));
|
||
define('OIDC_LOGOUT_ENDPOINT', getenv('OIDC_LOGOUT_ENDPOINT'));
|
||
define('OIDC_POST_LOGOUT_REDIRECT_URI', getenv('OIDC_POST_LOGOUT_REDIRECT_URI')); |