adasd
This commit is contained in:
@@ -24,3 +24,4 @@
|
|||||||
define('APP_OIDC_ADMIN_GROUP', 'admin');
|
define('APP_OIDC_ADMIN_GROUP', 'admin');
|
||||||
define('APP_OIDC_USER_GROUP', 'family');
|
define('APP_OIDC_USER_GROUP', 'family');
|
||||||
define('APP_DEBUG_TOOL', false);
|
define('APP_DEBUG_TOOL', false);
|
||||||
|
define('APP_AUTH_DEBUG', false);
|
||||||
|
|||||||
@@ -24,3 +24,4 @@
|
|||||||
define('APP_OIDC_ADMIN_GROUP', 'admin');
|
define('APP_OIDC_ADMIN_GROUP', 'admin');
|
||||||
define('APP_OIDC_USER_GROUP', 'family');
|
define('APP_OIDC_USER_GROUP', 'family');
|
||||||
define('APP_DEBUG_TOOL', true);
|
define('APP_DEBUG_TOOL', true);
|
||||||
|
define('APP_AUTH_DEBUG', true);
|
||||||
|
|||||||
@@ -55,4 +55,18 @@ $user = [
|
|||||||
|
|
||||||
$_SESSION['auth_user'] = $user;
|
$_SESSION['auth_user'] = $user;
|
||||||
|
|
||||||
|
if (defined('APP_AUTH_DEBUG') && APP_AUTH_DEBUG) {
|
||||||
|
$log = [
|
||||||
|
'ts' => date('c'),
|
||||||
|
'sub' => $user['sub'],
|
||||||
|
'email' => $user['email'],
|
||||||
|
'name' => $user['name'],
|
||||||
|
'groups' => $groups,
|
||||||
|
'iss' => $claims['iss'] ?? null,
|
||||||
|
'aud' => $claims['aud'] ?? null,
|
||||||
|
'claim_source' => !empty($groups) ? 'id_token_or_access_token' : 'none',
|
||||||
|
];
|
||||||
|
@file_put_contents(__DIR__ . '/../../debug/oidc_login.log', json_encode($log) . PHP_EOL, FILE_APPEND);
|
||||||
|
}
|
||||||
|
|
||||||
redirect('/');
|
redirect('/');
|
||||||
|
|||||||
Reference in New Issue
Block a user