Skip to content

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

P-D-
Copy link

@P-D- P-D- commented Mar 22, 2025

We had problems to get a working Shibboleth login. That's the changes we need to apply for successful login.

Copy link
Author

@P-D- P-D- left a 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]
            ];

Copy link
Author

@P-D- P-D- left a 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"

P-D- added 2 commits April 14, 2025 22:34
add missing config Parameter
add shibboleth Login example url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant