-
Notifications
You must be signed in to change notification settings - Fork 59
working Shibboleth authentication #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed something in ShibbolethService.php
$gnameVar = config('shibboleth.attribute_map.sname');
$snameVar = config('shibboleth.attribute_map.gname');
$mailVar = config('shibboleth.attribute_map.email');
$employeetypeVar = config('shibboleth.attribute_map.employeetype');
// Check if the required attributes are present in the $_SERVER array
if (isset($_SERVER[$snameVar], $_SERVER[$gnameVar], $_SERVER[$mailVar], $_SERVER[$employeetypeVar])) {
// Return user information
return $userInfo = [
'username' => $_SERVER['REMOTE_USER'],
'name' => $_SERVER[$gnameVar].' '.$_SERVER[$snameVar],
'email' => $_SERVER[$mailVar],
'employeetype' => $_SERVER[$employeetypeVar]
];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the SHIBBOLETH_LOGIN_URL should be
e.g. SHIBBOLETH_LOGIN_URL="/Shibboleth.sso/Login?entityID=https://YOUR_IDP/idp/shibboleth&target=https://YOUR_HAWKI/req/login-shibboleth"
add missing config Parameter
add shibboleth Login example url
We had problems to get a working Shibboleth login. That's the changes we need to apply for successful login.