Topic on Project:Support desk

users can login to mediawiki from another site

8
188.211.48.33 (talkcontribs)

Hi everyone

we have an asp.net MVC site with more than 200 users. we want our users can login to MediaWiki by their user name and password without sign up for MediaWiki. how can we do that?

MarkAHershberger (talkcontribs)

It depends upon the authentication method you are using for your asp.net site.

If you have a database of usernames and passwords in the asp.net app and want to allow people to use them, you could write an extension to use those usernames and passwords for authentication or you could expose, say, an OpenID interface there that your wiki could use.

Bawolff (talkcontribs)

if you need to make a custom sso, see SessionManager. However there are some prebuilt extensions which would be easier.

188.211.48.191 (talkcontribs)

thanks for your answer. would you please guide me in more detail? what is the name of prebuilt extensions?

our website has API. does it help at all?

MarkAHershberger (talkcontribs)
Mwkaryar (talkcontribs)

I'm so sorry that I ask my question again because I'm new here and I'm a little confused. this is exactly what we want:

1-our users go to the Media Wiki login form (they have no account in Media Wiki)

2- they fill the username and password input by their username and password(the username and password which they use to login to our website)

now we want:

3-the username and password have to be sent to our website API link:

ourSiteDomain.com/Api/GetPersonRow?UserName=$userName&Password=$password

*** The $username and $password are filled in step 2

4-our API returns a JSON response with user info without password

5-if the user is really our user and API response returns true, the user can log in to Media Wiki

these steps are what we want.

I don't know how to do these steps

thank you very much

MarkAHershberger (talkcontribs)

Your use case--the steps you've given--is possible using PluggableAuth, but you will have to write some PHP code to do what you want.

There are a number of consultants available (of which I am one) if you would like to hire someone to handle the integration for you.

If you want to do this yourself, I suggest looking at the SimpleSAMLphp extension to see how it integrates with PluggableAuth.

188.211.48.191 (talkcontribs)

thanks for your answer. would you please guide me in more detail? what is the name of prebuilt extensions?

our website has API. does it help at all?

Reply to "users can login to mediawiki from another site"