On Tue, 24 Aug 2010 13:22:04 -0700, "Owen B. Mehegan"
<owen(a)nerdnetworks.org> wrote:
This looks promising, and I don't think I had seen
it yet, so thank
you! In thinking about it more, I almost feel like at this point if I
could just get some example code for functions to create a MW account if
necessary, and then log that account in, I could bolt those onto my
existing plugin and I'd be all set. Based on what I have now, after the
successful authentication and role check, I just need 'userExists,'
'createUser,' and logInUser' type functions which all apply to the
MediaWiki side. If you have suggestions of things I can look at in that
area specifically, that would be great. Thank you!
I thought about this some more and realized that basically what I need
is a stack of MediaWiki functions that get called after I finish doing
my external auth, before I redirect the user back to the wiki. It would
look like this:
userExists?
yes: userLoggedIn?
yes: direct to wiki
no: logInUser; direct to wiki
no: createUser; logInUser; direct to wiki
I can only assume that these functions exist in MW and that I can
import them from somewhere and use them in my own code. Does that make
sense?
--
Owen B. Mehegan (owen(a)nerdnetworks.org)
"He is a dangerous mixture of sophistication and recklessness which
makes one anxious about his influence on other boys."