-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched guest detection to standard permission system.
- Loading branch information
1 parent
80a32fa
commit ab0049b
Showing
6 changed files
with
38 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
module/VuFindSearch/src/VuFindSearch/Backend/EDS/EBSCOAuthenticateIP.php
This file was deleted.
Oops, something went wrong.
ab0049b
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.
If one can enter a whole subnet (e.g. 192.168.178.0/24) for client/campus authentication instead of a (long) list of IPs, it fits our needs. As far as I see the strcmp(substr($ip_address ... section needs to be changed to allow ip ranges using my ip2long method.
ab0049b
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.
@powerriegel, this pull request completely removes the
strcmp(substr($ip_address ...
logic and replaces it with the ability to hook in to any of VuFind's various PermissionProvider services. For your purposes, you would probably want to use IpRange, which utilizes this code: https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/Net/IpAddressUtils.php. I don't think subnet notation is currently supported, but you can use hyphenated ranges, so you would just have to specify the beginning and end of the subnet. It would probably also be possible to add support to translate subnet format into range format within the IpAddressUtils class.