Require Login for all Pages (and new Beloit site)

19 views
Skip to first unread message

Nicholas Mischler

unread,
Oct 3, 2019, 2:07:50 PM10/3/19
to Reason Discussion
Hello all,

It's happened.  Beloit launched its new site about a month ago, and we are no longer running under Reason: https://www.beloit.edu/.

Thank you again to Carleton College for the CMS which ran the Beloit College site for a decade, and this community for making it better and helping solve all the little oddities which popped up along the way.

That said, I have what may be from me one last question: is there an easy way to force all pages to require login?  We're hashing out what to do with the Reason site (4.6) in the short term, and one thing I'm hoping to do is make sure no one is linking back to it for the duration we're holding onto it.  

I was hoping development mode would do it, but that appears to just be no-search.  No other settings seem to cover it, and I'm not inclined to go assigning groups to the root pages of way too many minisites. <_<

Hope all is going well at your respective institutions,

Nick

Carolyn Zinn

unread,
Oct 3, 2019, 2:23:00 PM10/3/19
to reason-d...@googlegroups.com

Hi Nick,

 

Congratulations – the new site looks great! How do you like LiveWhale?

 

If I were in your place,  I would configure the web server (presumably Apache) to disable anonymous access.

 

Carolyn

 

 

Carolyn Zinn

Director of Web Services

Information Services

Kalamazoo College

Caroly...@kzoo.edu

--
You received this message because you are subscribed to the Google Groups "Reason Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reason-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reason-discussion/1c26bd31-5bf6-4e8b-9c11-6edec364e295%40googlegroups.com.

Matt Ryan

unread,
Oct 3, 2019, 3:20:14 PM10/3/19
to reason-d...@googlegroups.com
Congratulations from MN!

Carolyn's solution will work for sure. If you want a PHP solution, add this line in your base template:

reason_require_authentication();

Best,
Matt

Nicholas Mischler

unread,
Oct 3, 2019, 6:13:30 PM10/3/19
to Reason Discussion
Hello,

Thank you both.  The apache approach was on my mind as a fallback, but was hoping more for the PHP solution Matt shared.  

Ran into one little issue with an infinite loop: adding it outright made it so I had to be logged in to see /login/ to log in. Here is my quick fix for that, if anyone ends up needing it:

if(strpos($_SERVER['REQUEST_URI'],"/login/") === false) {reason_require_authentication();}

To Carolyn's question, everything to do with WhiteWhale/LiveWhale has been good thus far.  Our main hurdle at this point is helping campus use it and use it well, so I haven't been able to get too deep into the developer side quite yet.  There's a interface for making widgets (modules) within the CMS itself, which is doubtless a plus for efficiency, but a personal minus for taking some of my developer fun. >_>

Thanks,
Nick

On Thursday, October 3, 2019 at 2:20:14 PM UTC-5, Matt wrote:
Congratulations from MN!

Carolyn's solution will work for sure. If you want a PHP solution, add this line in your base template:

reason_require_authentication();

Best,
Matt

On Thu, Oct 3, 2019, 1:23 PM Carolyn Zinn <Carol...@kzoo.edu> wrote:

Hi Nick,

 

Congratulations – the new site looks great! How do you like LiveWhale?

 

If I were in your place,  I would configure the web server (presumably Apache) to disable anonymous access.

 

Carolyn

 

 

Carolyn Zinn

Director of Web Services

Information Services

Kalamazoo College

Caroly...@kzoo.edu

 

 

 

 

From: reason-d...@googlegroups.com <reason-d...@googlegroups.com> On Behalf Of Nicholas Mischler
Sent: Thursday, October 03, 2019 2:08 PM
To: Reason Discussion <reason-d...@googlegroups.com>
Subject: [reason-discussion] Require Login for all Pages (and new Beloit site)

 

Hello all,

It's happened.  Beloit launched its new site about a month ago, and we are no longer running under Reason: https://www.beloit.edu/.

Thank you again to Carleton College for the CMS which ran the Beloit College site for a decade, and this community for making it better and helping solve all the little oddities which popped up along the way.

 

That said, I have what may be from me one last question: is there an easy way to force all pages to require login?  We're hashing out what to do with the Reason site (4.6) in the short term, and one thing I'm hoping to do is make sure no one is linking back to it for the duration we're holding onto it.  

 

I was hoping development mode would do it, but that appears to just be no-search.  No other settings seem to cover it, and I'm not inclined to go assigning groups to the root pages of way too many minisites. <_<

 

Hope all is going well at your respective institutions,


Nick

--
You received this message because you are subscribed to the Google Groups "Reason Discussion" group.

To unsubscribe from this group and stop receiving emails from it, send an email to reason-d...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Reason Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reason-d...@googlegroups.com.

Brian Jones

unread,
Oct 4, 2019, 8:25:25 AM10/4/19
to Reason Discussion
Congratulations to Beloit from Luther!

We'll probably be the last Reason holdout, but will most likely be following Carleton's move to Wordpress over the next few years. There is even a chance that we'll need to upgrade Reason to PHP 7 before it's all said and done.
Reply all
Reply to author
Forward
0 new messages