Skip to content
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

Guessing at fixes for Shibboleth issues. #2608

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

drgrice1
Copy link
Member

There are two problems with the Shibboleth authenticaiton that I have identified in discussion with @glarose together with analyzing code and the issues posted in the forums (see
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=8534#p21568).

The first is that the Shibboleth module overrides the WeBWorK::Authen check_session method, and does not properly initialize the database session. This causes anything that uses the database session (which includes test proctor authentication) to fail.

The second is that the WeBWorK::Controller session method returns undefined in the case that cookies are disabled (which the Shibboleth authentication module does). The Mojolicious::Plugin::DefaultHelpers _validation method then calls the session method expecting it to be an object or a hash reference.

I have no way to test that this fixes the issues that have been reported, and can only write code that should work. So someone with a Shibboleth identity provider will need to test this.

There are two problems with the Shibboleth authenticaiton that I have
identified in discussion with @glarose together with analyzing code and
the issues posted in the forums (see
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=8534#p21568).

The first is that the Shibboleth module overrides the WeBWorK::Authen
check_session method, and does not properly initialize the database
session.  This causes anything that uses the database session (which
includes test proctor authentication) to fail.

The second is that the WeBWorK::Controller session method returns
undefined in the case that cookies are disabled (which the Shibboleth
authentication module does).  The Mojolicious::Plugin::DefaultHelpers
_validation method then calls the session method expecting it to be an
object or a hash reference.

I have no way to test that this fixes the issues that have been
reported, and can only write code that should work.  So someone with
a Shibboleth identity provider will need to test this.
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