We are re-implementing our Intranet using Drupal and would like all pages, except for a home/intro page, to require authentication via the campus CAS server. What I'd love to see would be a "Redirect every page except the listed pages" in the 'Redirection settings' (similar to the "Show on every page except the listed pages" you see in block config). I've tried using the Front_page module to provide a different home/intro page for non-authenticated users (something it has no problem doing), but it looks like the CAS module is redirecting before Front_page can do it's thing. Any chance of seing this option added to the Redirection settings? [Or is there a better way to accomplish this?]

CommentFileSizeAuthor
#2 cas-156921.patch.txt3.19 KBmetzlerd

Comments

metzlerd’s picture

This is definitely something that I intend to do. I'm in need of it as well. I might knock it out tommorrow, but if I don't get to it, I'll be out of the country for the next 3 weeks. Feel free to submit a patch if you feel so inclined.

Basically the strategy is to change the All Pages radio to All pages except and have the same wild card text box control the behavior. There's code like this in the Tinymce module which I planned to base this after.

Otherwise I'll implement this as soon as I return in August.

If you submit a patch, be sure to do so against head.

Dave

metzlerd’s picture

Version: 5.x-2.1 » master
Assigned: Unassigned » metzlerd
Status: Active » Needs review
StatusFileSize
new3.19 KB

Here is a patch that accomplishes this feature. As always looking for others to review my code, but I'll go ahead and commit this if I don't here back in a day or so.

metzlerd’s picture

Status: Needs review » Fixed

Commited this since no one jumped on code review.

Anonymous’s picture

Status: Fixed » Closed (fixed)