LemonLDAP::NG Web SSO
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
lemonldap-ng/docker/client-apps/oidc.php

13 lines
387 B

<?php
echo "This is a OIDC-protected application";
echo "<br/><br/>";
$data = json_decode($_SERVER['OIDC_userinfo_json']);
echo "Connected as " . $data->preferred_username . " (" . $data->name . " &lt;" . $data->email . "&gt;" . ")";
echo "<br/>";
echo "Member of the following groups:";
echo "<ul>";
foreach ($data->groups as $group) {
echo "<li>" . $group . "</li>";
}
echo "</ul>";