Jump to content

Recommended Posts

How to guide a guest user to enter a special guest area ?

So far, I just learned that I can for example
assign a directory to a special user
so that after login, the user can see the files in the directory in the "index browser".
But my audioence are not wiki users, but normal Internet users.

So if I send them an email with the username+passwort for the guest area,
I would like to have them enter the username+password in a manner, that they are THEN on one of the pages in the special guest directory.
So that they must not click on an index, to find the guest pages.

One option would be to transfer username+password for Mediawiki by command line. Did anybody implement such ?
One other option is, that the user loads a page, with the info what he/she shall enter at the Mediawiki login prompt ( if possible on the same page).Did anybody implement such ?

Any idea how to proceed ?
 

Sincerely,

Raymond

Link to post
Share on other sites

MediaWiki is not really designed for access control schemes were certain users can see pages that other users are unable to see, but https://www.mediawiki.org/wiki/Extension:Lockdown facilitates that method of operation. This would allow you to lock down certain wiki pages (such as every page in a particular namespace) so that only people with the correct group can read them. Then you simply add that group to the wiki accounts for the people that should have access, and when they log in they can view the pages.

If you are referring to a solution outside of MediaWiki (not having restricted-access wiki pages), then I fail to see how this relates to MediaWiki at all.

  • Thanks 1
Link to post
Share on other sites

Yes, the https://www.mediawiki.org/wiki/Extension:Auth_remoteuser extension lets you automatically authenticate people to the wiki given arbitrary external credentials. How exactly to set it up will vary based on the authentication provider (what actually validates that the usernames/passwords are valid, when using this extension you're bypassing the normal MediaWiki login flow so your user account password on the wiki will not be checked). For sending a credential through a link, you would need some sort of processing server-side to extract the credential, validate it, and then set the appropriate AUTH_REMOTEUSER environment variable context. I don't believe anything currently exists for this but if you aren't too concerned about the security of the credentials it'd be easy enough to do entirely via mod_rewrite

Edited by Skizzerz
clarify (see edit history)
  • Thanks 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.