ucsb / webguide

Repository for the UCSB WSG Webguide hosted on Github using Jekyll.
https://webguide.ucsb.edu
BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

Create Login functionality for Members only pages #398

Closed rvizena closed 3 years ago

rvizena commented 4 years ago

New Page: https://dev-webguide-ucsb-edu-v01.pantheonsite.io/about-wsg/wsg-members-access

rvizena commented 3 years ago

Pages with Authentication

Pages to Link to

tenken commented 3 years ago
tenken commented 3 years ago
tenken commented 3 years ago
tenken commented 3 years ago
rvizena commented 3 years ago

Private Content module has been added and new 'Members Area' Menu has been created for Minutes and Resources pages. We should add a redirect on successful login attempts to point to /members-area main page.

tenken commented 3 years ago

@rvizena A proof of concept was implemented around 10pm on 04-26-2021 in http://mla-webguide-ucsb-edu-v01.pantheonsite.io/

This is a basic solution from comments in this issue https://www.drupal.org/project/cas/issues/2960398#comment-12574447

Please see the footer link(s) I added where we have placed the member login. There is a "basic" login that redirects to /members-area after succesful CAS login.

I also have created a "1 hop" login link, which I somewhat more prefer. I created a site Redirect with the redirect module to take /authorized-user and redirect any access to that page to /members-area. This way the CAS login link which may be Indexed by Google on every page in the footer ultimately is an internal link /caslogin?returnto=/authorized-user that doesn't divulge anything about a Members Area page on the website. An astute hacker may try to /authorize-user directly, but they will still get a 403 error from drupal, but a casual onlooker of the site will not really see anything about the members area overtly on the site.

Let me know what link you want to go with ...

Edit: it looks like the Drupal CAS module is looking for other solutions to this problem, but no other solution is yet provided: https://www.drupal.org/project/cas/issues/3150047

tenken commented 3 years ago