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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10855, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
intranet
  // database
  $mw_session = new MediaWikiSession($username, $password);
  
  // This sets the MW cookie(s) and effectively logs the user into MW
  if ($mw_session)
    $mw_session->startSession();
  else
    ...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.


Navigation
Links