How do I create a password-protected page so that I may only have invited viewers log into my site?
Category:
- Question
10/29/15
With the launch of the MIT Sites service, Drupal Cloud is being phased out. Effective January 2, 2024, no new Drupal Cloud sites will be created. Students, faculty, and staff are invited to visit sites.mit.edu to create a new MIT website.
How do I create a password-protected page so that I may only have invited viewers log into my site?
10/29/15
mpatsyuk@mit.edu
I am also interested in this issue.
12/15/15
asphodel@mit.edu
1. Create an account for the user, if the user doesn't already have one. If you set the username and password to the user's Touchstone email, I believe Touchstone recognize the account. You can also assign a username and password login to the user, but that'll likely be less secure.
2. Create a new role and give your user that role.
3. Enable the "Content Access" module.
4. Edit the Content Type for the page you want to password-protect (Structures < Content types). Click on the "Access Control" tab and check the setting for "Enable per content node access control settings" under "PER CONTENT NODE ACCESS CONTROL SETTINGS."
5. Create your password-protected page and save it.
6. Once you've saved the node, you should see a new "Access control" tab appear. Uncheck all editable boxes and give the role you created in step 2 "View any page content" permission.
And I think that should do it.
1/27/16
gfranzet@mit.edu
The previous method listed is a quick fix and I've done this when need be, but it is not quite the solution, per se. What is desirable is to have a site or a page that would not require outside users to receive a kerberos account. There are circumstances when we have such visitors (such as NSF). It also is more presentable to not have users access the site itself without the administrative menu visible.
3/13/20
asphodel@mit.edu
...Or you can email drupalcloud@mit.edu and request that a module like https://www.drupal.org/project/protected_pages be added to the Drupal Cloud service.
3/13/20