Last modified: 2014-07-09 12:30:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8855 - Allow third-party code to start MediaWiki session
Allow third-party code to start MediaWiki session
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-02-01 23:27 UTC by jeremybuchmann
Modified: 2014-07-09 12:30 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description jeremybuchmann 2007-02-01 23:27:43 UTC
Currently, MediaWiki has an AuthPlugin module that allows third-party developers
to easily write an extension to authenticate MediaWiki logins against another
database (like our intranet app).  This is wonderful, but it'd be great to be
able to start a MediaWiki session when a user logs in to our app.  That way, we
can include a link to our wiki site inside our app and the user doesn't have to
re-enter their username and password...they're already logged in.

I thinking of something like this (pretend this is the authentication code for
our app):

if ($username and $password are valid)
  setCookie(our cookie);
  // This eventually uses our AuthPlugin subclass which authenticates to our
  // database
  $mw_session = new MediaWikiSession($username, $password);
  // This sets the MW cookie(s) and effectively logs the user into MW
  if ($mw_session)
    ...handle error...

Thanks for reading.
Comment 1 Yuri Astrakhan 2007-05-19 04:38:23 UTC
I don't think this is an API issue. Changing to general.
Comment 2 PiRSquared17 2014-06-10 01:39:26 UTC
Is this still an issue? Could it be clarified?
Comment 3 Andre Klapper 2014-07-09 12:30:04 UTC
PiRSquared17: What kind of clarification do you look for?

Note You need to log in before you can comment on or make changes to this bug.