-
Notifications
You must be signed in to change notification settings - Fork 444
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
Issue #1963: add Shibboleth authentication capability #2661
Conversation
|
||
// We rely on these headers being present. | ||
if (!isset($_SERVER[$uinHeader])) { | ||
syslog( |
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.
@crism, we've generally used error_log
rather than syslog
in the past -- is there a reason for introducing a different logging pattern here? I'd worry that admins won't be used to looking there for OJS-related stuff.
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 previous Shibboleth plugin used syslog()
and I tried to reuse as much of that code as possible. I’d rather use error_log()
.
* | ||
* @return ShibbolethAuthPlugin | ||
*/ | ||
function &_getPlugin() { |
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.
References on objects aren't needed with PHP5+.
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.
More cut-and-paste from the predecessor (or maybe some other plugin)—that can go.
$userId = $user->getId(); | ||
$adminFound = array_search($uin, $admins); | ||
|
||
$userGroupDao =& DAORegistry::getDAO('UserGroupDAO'); |
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.
Unnecessary reference use (probably also elsewhere) -- there are lots of these in the codebase, but we're trying to clean them up as we go.
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.
More cut-and-paste.
Looks good, @crism, and sorry I missed this earlier. Just a few questions/tweaks, but this could also use a fresh push to trigger Travis testing -- a lot of master branch stuff has changed since July. |
@asmecher, I think this addresses your comments. Sorry for the delay. |
@vieville, you can’t pull a pull request. Add my fork as a remote and check out the |
Excellent, @crism, and just in time for OJS 3.1 -- many thanks! |
...except I moved it out of the |
@asmecher it should work with O*S… why move it? |
Ooh, neat! I spotted a reference to journal managers in ShibbolethSettingsForm and assumed -- but I'm more than happy to hear it's agnostic. The best thing to do with this will be to move it to its own repository, then make it available via the plugin gallery. I'll do that and drop you a link. |
It lives! https://github.com/pkp/shibboleth |
@asmecher, yes, journal managers are mentioned in a comment; I tried to genericize everything, but missed that one. Thanks for setting up that repo! |
@crism, I've added you as an admin to that repo. The next things that'll need doing are tagging and building a .tar.gz release, and adding it to the plugin gallery -- I'll do that after the OJS 3.1 release comes out, and use it as an opportunity to document that process in a blog post. |
Hi @asmecher and @crism, thanks again for this plugin :-) As far as I understand the plan is to host it in the |
@kasioumis, I've just added the plugin to the Plugin Gallery; please let me know whether that works for you. |
@asmecher Thanks!
Note that the Settings Google Scholar Indexing Plugin happens to be the first plugin in the list of Generic Plugins.
I'll be happy to provide more feedback and/or move this query to the forum. |
Hi @kasioumis, Could you check if this will resolve the issue on your OJS 3.1.0 installation?
If you can confirm that this works, I'll update the version in the plugin gallery. |
Hi @asmecher, I confirm that the updated shibboleth release (ojs-3_1_0-0-1) can be installed and set up without any problems on OJS 3.1.0. Thanks! |
Great, thanks! I've already put the updated version into the plugin galley. |
Fixes #1963.
Tested with multiple users with existing accounts and new ones, from multiple entry and exit points.