Merge branch 'main' of https://gitea.hmac.kr/b24014/kngil_home
This commit is contained in:
@@ -1,10 +1,22 @@
|
||||
<?php
|
||||
// /kngil/bbs/oidc_config.php
|
||||
require_once __DIR__ . '/env.php';
|
||||
kngil_load_env_once(dirname(__DIR__, 2) . '/.env');
|
||||
|
||||
$issuer = getenv('OIDC_ISSUER') ?: '';
|
||||
$clientId = getenv('OIDC_CLIENT_ID') ?: '';
|
||||
$clientSecret = getenv('OIDC_CLIENT_SECRET') ?: '';
|
||||
$redirectUrl = getenv('OIDC_REDIRECT_URL') ?: '';
|
||||
$scopesRaw = getenv('OIDC_SCOPES');
|
||||
$scopes = ['openid'];
|
||||
if ($scopesRaw !== false && $scopesRaw !== '') {
|
||||
$scopes = array_values(array_filter(preg_split('/\s*,\s*|\s+/', $scopesRaw)));
|
||||
}
|
||||
|
||||
return [
|
||||
'issuer' => 'https://sss.hmac.kr/oidc', // 예: https://idp.example.com/auth/realms/master
|
||||
'client_id' => 'cc6f2f41-2705-4c7d-bffc-24c1d6b484f1',
|
||||
'client_secret' => 'ebjOE4I-gLnANV5KY623hClSAy',
|
||||
'issuer' => 'https://api.descope.com/v1/apps/P2x26KgEwOu0xIwgNZutJjIZc1zz', // 예: https://idp.example.com/auth/realms/master
|
||||
'client_id' => 'UDJ4MjZLZ0V3T3UweEl3Z05adXRKaklaYzF6ejpUUEEzOTVtSmx5MXhiczFwZWxrUHdDVFlvU2hiYXc=',
|
||||
'client_secret' => 'uTjiKweHYUINalroA1LVu9OacbEEMPtPbfFITfHu3r5',
|
||||
'redirect_url' => "https://kngil.hmac.kr/kngil/auth/oidc-callback.php",
|
||||
'scopes' => ['openid', 'profile', 'email'],
|
||||
'scopes' => ['openid'],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user