Topic on Project:Support desk

How to login via URL?

3
92.107.149.171 (talkcontribs)

We have a closed mediawiki for registred users only. From another site (moodle) we'd like to link one special user "academy" to the wiki-site, without the user having to login manually. It might be a link - within the also secured moodle lesson - where the user "academy" would automatically login to the wiki-site. "academy" has readonly-rights.

We have mediawiki 1.18 and the WgetAuthentication plugin doesn't work.

Is there another way to accomplish my task?

Bawolff (talkcontribs)

You can log in via the api, see API:Login. However that requires more than just a link (but still something entirely accomplishable via ajax if the moodle site is on the same domain).

Otherwise you might be looking at writing a custom AuthPlugin or at the very least a custom extension using the UserLoadFromSession hook.

92.107.149.171 (talkcontribs)

Hi, thanks for your reply. I studied the API material, but I can't build it by myself. So I'll have a workaround going in distributing a password for the readonly user "academy".

Reply to "How to login via URL?"