Michelle
Michelle

Reputation: 249

Kentico - Password Protect Content

I have some set of documents and want to password protect them with one set of userid/password for each group of users. It's like this:

Outside of Kentico, I can go to the webhosting control panel and apply password to any folders.

With Kentico (global admin privilege, no backend/server access) I'm not sure if this is possible and if yes, how to do it. Thanks for your input.

Note: I've tried creating a custom login page using the Logon Form webpart; set the destination URL for the Logon Form to a landing page that lists links to the docs; then added the mentioned docs as subpages; added new user (userid1/password1) through Users app and also under Properties/Security. But this didn't work as expected.

Upvotes: 0

Views: 522

Answers (1)

Rui
Rui

Reputation: 494

Michelle, basically you want a group of user share a single username/password combination, right? Which is basically a "group" of people all use a single "user" account in CMS.

So first you setup user account like user1/pw1, user2/pw2.

Then in you content tree, go to /survey1 > Properties > Security > set it to requirement authentication. Then add user1 to have READ permission. Do the same for other folders.

Then in a different browser session which you are not logged in, try to hit yoursite.com/survey1, it should redirect you to a login page, once you login with user1/pw1, it should route you back to /survey1.

If you have created your own login page like /mylogin.aspx, then go to Settings application > Settings > Security & Membership > Content > Website logon page URL, and add that ~/mylogin.aspx there, so when visitor is prompt for login, it will be that page.

Upvotes: 0

Related Questions