/realms//', '', '' ); // Redirect post-login $oidc->setRedirectURL('https:///admin/login.php'); $oidc->authenticate(); $userinfo = $oidc->getVerifiedClaims(); $_SESSION['admin'] = $userinfo->preferred_username; header("Location: index.php"); exit;