Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

How to create account by API?

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


wangfeng.v1.1985 at gmail

Aug 6, 2012, 11:42 PM

Post #1 of 22 (3298 views)
Permalink
How to create account by API?

Hi,
I have build mediawiki .
And I have another webservice write by myself.
What I want is :

1. when I register in my service , it could create an acount in mediawiki
2. when I login in my service , it could login in mediawiki
3. when I logout in my service ,it could logout in mediawiki

I have found API:Login and API:Logout .
But I cannot find something like API:CreateAccount.
So can someone tell me how to create account by API?
Thanks.
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


katkov.juriy at gmail

Aug 6, 2012, 11:45 PM

Post #2 of 22 (3206 views)
Permalink
Re: How to create account by API? [In reply to]

Hi there!

I'm by not at all specialist on API, but this page looks like you want:

http://www.mediawiki.org/wiki/API:Account_creation
-----
Yury Katkov



On Tue, Aug 7, 2012 at 10:42 AM, wangfeng wangfeng
<wangfeng.v1.1985 [at] gmail> wrote:
> Hi,
> I have build mediawiki .
> And I have another webservice write by myself.
> What I want is :
>
> 1. when I register in my service , it could create an acount in mediawiki
> 2. when I login in my service , it could login in mediawiki
> 3. when I logout in my service ,it could logout in mediawiki
>
> I have found API:Login and API:Logout .
> But I cannot find something like API:CreateAccount.
> So can someone tell me how to create account by API?
> Thanks.
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


yuvipanda at gmail

Aug 6, 2012, 11:49 PM

Post #3 of 22 (3169 views)
Permalink
Re: How to create account by API? [In reply to]

There is currently no API to do account creation
(https://www.mediawiki.org/wiki/API:Account_creation is a draft, and
IIRC there is nobody actively working on it). There was a GSoC
student working on it last year
(https://www.mediawiki.org/wiki/Extension:SignupAPI) but I don't think
that's in any state to be deployed soon.

--
Yuvi Panda T
http://yuvi.in/blog

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wangfeng.v1.1985 at gmail

Aug 6, 2012, 11:58 PM

Post #4 of 22 (3174 views)
Permalink
Re: How to create account by API? [In reply to]

Thank you.
So do you mean that I cannot create an account through my service?

2012/8/7 Yuvi Panda <yuvipanda [at] gmail>

> There is currently no API to do account creation
> (https://www.mediawiki.org/wiki/API:Account_creation is a draft, and
> IIRC there is nobody actively working on it). There was a GSoC
> student working on it last year
> (https://www.mediawiki.org/wiki/Extension:SignupAPI) but I don't think
> that's in any state to be deployed soon.
>
> --
> Yuvi Panda T
> http://yuvi.in/blog
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


gwsuperfan at gmail

Aug 7, 2012, 12:01 AM

Post #5 of 22 (3164 views)
Permalink
Re: How to create account by API? [In reply to]

It seems like it would make more sense to just use a central
authentication system to support both the Wiki and the other services.
There are extensions and plugins for LDAP and other authentication
methods.

On Mon, Aug 6, 2012 at 11:58 PM, wangfeng wangfeng
<wangfeng.v1.1985 [at] gmail> wrote:
> Thank you.
> So do you mean that I cannot create an account through my service?
>
> 2012/8/7 Yuvi Panda <yuvipanda [at] gmail>
>
>> There is currently no API to do account creation
>> (https://www.mediawiki.org/wiki/API:Account_creation is a draft, and
>> IIRC there is nobody actively working on it). There was a GSoC
>> student working on it last year
>> (https://www.mediawiki.org/wiki/Extension:SignupAPI) but I don't think
>> that's in any state to be deployed soon.
>>
>> --
>> Yuvi Panda T
>> http://yuvi.in/blog
>>
>> _______________________________________________
>> Wikitech-l mailing list
>> Wikitech-l [at] lists
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wangfeng.v1.1985 at gmail

Aug 7, 2012, 12:29 AM

Post #6 of 22 (3168 views)
Permalink
Re: How to create account by API? [In reply to]

Thank you .
I will consider it.

2012/8/7 Christopher Wilson <gwsuperfan [at] gmail>

> It seems like it would make more sense to just use a central
> authentication system to support both the Wiki and the other services.
> There are extensions and plugins for LDAP and other authentication
> methods.
>
> On Mon, Aug 6, 2012 at 11:58 PM, wangfeng wangfeng
> <wangfeng.v1.1985 [at] gmail> wrote:
> > Thank you.
> > So do you mean that I cannot create an account through my service?
> >
> > 2012/8/7 Yuvi Panda <yuvipanda [at] gmail>
> >
> >> There is currently no API to do account creation
> >> (https://www.mediawiki.org/wiki/API:Account_creation is a draft, and
> >> IIRC there is nobody actively working on it). There was a GSoC
> >> student working on it last year
> >> (https://www.mediawiki.org/wiki/Extension:SignupAPI) but I don't think
> >> that's in any state to be deployed soon.
> >>
> >> --
> >> Yuvi Panda T
> >> http://yuvi.in/blog
> >>
> >> _______________________________________________
> >> Wikitech-l mailing list
> >> Wikitech-l [at] lists
> >> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >>
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


tylerromeo at gmail

Aug 7, 2012, 5:59 AM

Post #7 of 22 (3155 views)
Permalink
Re: How to create account by API? [In reply to]

Hmm, if there is actually any interest, I might try and work on the account
registration API.

*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo [at] gmail



On Tue, Aug 7, 2012 at 3:29 AM, wangfeng wangfeng <
wangfeng.v1.1985 [at] gmail> wrote:

> Thank you .
> I will consider it.
>
> 2012/8/7 Christopher Wilson <gwsuperfan [at] gmail>
>
> > It seems like it would make more sense to just use a central
> > authentication system to support both the Wiki and the other services.
> > There are extensions and plugins for LDAP and other authentication
> > methods.
> >
> > On Mon, Aug 6, 2012 at 11:58 PM, wangfeng wangfeng
> > <wangfeng.v1.1985 [at] gmail> wrote:
> > > Thank you.
> > > So do you mean that I cannot create an account through my service?
> > >
> > > 2012/8/7 Yuvi Panda <yuvipanda [at] gmail>
> > >
> > >> There is currently no API to do account creation
> > >> (https://www.mediawiki.org/wiki/API:Account_creation is a draft, and
> > >> IIRC there is nobody actively working on it). There was a GSoC
> > >> student working on it last year
> > >> (https://www.mediawiki.org/wiki/Extension:SignupAPI) but I don't
> think
> > >> that's in any state to be deployed soon.
> > >>
> > >> --
> > >> Yuvi Panda T
> > >> http://yuvi.in/blog
> > >>
> > >> _______________________________________________
> > >> Wikitech-l mailing list
> > >> Wikitech-l [at] lists
> > >> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >>
> > > _______________________________________________
> > > Wikitech-l mailing list
> > > Wikitech-l [at] lists
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


yuvipanda at gmail

Aug 7, 2012, 6:04 AM

Post #8 of 22 (3154 views)
Permalink
Re: How to create account by API? [In reply to]

On Tue, Aug 7, 2012 at 6:29 PM, Tyler Romeo <tylerromeo [at] gmail> wrote:
> Hmm, if there is actually any interest, I might try and work on the account
> registration API.

I'm sure there's plenty of interest! From what I know, at least Mobile
Team is interested in them (enabling account creation in apps).

--
Yuvi Panda T
http://yuvi.in/blog

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


tylerromeo at gmail

Aug 7, 2012, 6:08 AM

Post #9 of 22 (3146 views)
Permalink
Re: How to create account by API? [In reply to]

Awesome. In that case I'll put it on my project list. Depending on how free
I am, I should have something in the next week or two.

*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo [at] gmail



On Tue, Aug 7, 2012 at 9:04 AM, Yuvi Panda <yuvipanda [at] gmail> wrote:

> On Tue, Aug 7, 2012 at 6:29 PM, Tyler Romeo <tylerromeo [at] gmail> wrote:
> > Hmm, if there is actually any interest, I might try and work on the
> account
> > registration API.
>
> I'm sure there's plenty of interest! From what I know, at least Mobile
> Team is interested in them (enabling account creation in apps).
>
> --
> Yuvi Panda T
> http://yuvi.in/blog
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wangfeng.v1.1985 at gmail

Aug 7, 2012, 5:49 PM

Post #10 of 22 (3173 views)
Permalink
Re: How to create account by API? [In reply to]

Thank you! Your work will great help to me.

2012/8/7 Tyler Romeo <tylerromeo [at] gmail>

> Awesome. In that case I'll put it on my project list. Depending on how free
> I am, I should have something in the next week or two.
>
> *--*
> *Tyler Romeo*
> Stevens Institute of Technology, Class of 2015
> Major in Computer Science
> www.whizkidztech.com | tylerromeo [at] gmail
>
>
>
> On Tue, Aug 7, 2012 at 9:04 AM, Yuvi Panda <yuvipanda [at] gmail> wrote:
>
> > On Tue, Aug 7, 2012 at 6:29 PM, Tyler Romeo <tylerromeo [at] gmail>
> wrote:
> > > Hmm, if there is actually any interest, I might try and work on the
> > account
> > > registration API.
> >
> > I'm sure there's plenty of interest! From what I know, at least Mobile
> > Team is interested in them (enabling account creation in apps).
> >
> > --
> > Yuvi Panda T
> > http://yuvi.in/blog
> >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


lists at asheesh

Aug 7, 2012, 11:43 PM

Post #11 of 22 (3137 views)
Permalink
Re: How to create account by API? [In reply to]

Excerpts from wangfeng wangfeng's message of Tue Aug 07 20:49:12 -0400 2012:
> Thank you! Your work will great help to me.

To me, too. I will stop working on my program that scrapes the
web interface to create accounts, then!

https://github.com/paulproteus/create-wiki-account

-- Asheesh.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


platonides at gmail

Aug 8, 2012, 10:47 AM

Post #12 of 22 (3135 views)
Permalink
Re: How to create account by API? [In reply to]

> What I want is :
>
> 1. when I register in my service , it could create an acount in mediawiki
> 2. when I login in my service , it could login in mediawiki
> 3. when I logout in my service ,it could logout in mediawiki

What you want would be better served by implementing an AuthPlugin:
https://www.mediawiki.org/wiki/AuthPlugin

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


tylerromeo at gmail

Aug 8, 2012, 12:31 PM

Post #13 of 22 (3135 views)
Permalink
Re: How to create account by API? [In reply to]

Platonides is right about that. Regardless it'd still be useful to have an
account creation API. So here's a draft:
https://gerrit.wikimedia.org/r/18127

*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo [at] gmail



On Wed, Aug 8, 2012 at 1:47 PM, Platonides <platonides [at] gmail> wrote:

> > What I want is :
> >
> > 1. when I register in my service , it could create an acount in
> mediawiki
> > 2. when I login in my service , it could login in mediawiki
> > 3. when I logout in my service ,it could logout in mediawiki
>
> What you want would be better served by implementing an AuthPlugin:
> https://www.mediawiki.org/wiki/AuthPlugin
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


akshay.leadindia at gmail

Aug 17, 2012, 7:30 AM

Post #14 of 22 (3069 views)
Permalink
Re: How to create account by API? [In reply to]

The SignupAPI I developed indeed takes care of everything required and was
truly developed to cater to such requirements. It would not be a good idea
to rework the same. A lot of brainstorming and architectural discussions
were already done while developing this project & it received input on
several different aspects from the community. I really think that instead
of developing something new, Extension:SignupAPI should be given a chance
for deployment because it solves several requirements including the
tracking of what events are most effective in creating accounts and then
having the ability to suggest suitable exit activities. Also, the UI was
totally revamped to make it visually appealing. Client side validations for
user input have also been implemented including the ability to alert user
if his desired username has already been taken while he enters it on the
signup form. The extension also does a lot of refactoring of the existing
SpecialLoginPage by taking out the account creation logic from it and then
putting it in its own API. The extension has also received extensive
testing by several developers including Santhosh who tested it out with
internationalized usernames & suggested relevant bugs which I fixed.

Some things came up and I didn't get back to working on SignupAPI, but I'm
really keen on helping now & wish to work towards deploying the extension.
I need a mentor to help me through the process because it seems that many
parts of the development process have significantly changed.

Thanks & Regards
Akshay Agarwal
Software Developer
Directi
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


tylerromeo at gmail

Aug 17, 2012, 7:48 AM

Post #15 of 22 (3072 views)
Permalink
Re: How to create account by API? [In reply to]

User account creation is something that is pretty critical to the MediaWiki
infrastructure. If we're going to be completely revamping the signup page,
it should not be done in an extension.

Furthermore, looking at the extension's code now, there are numerous design
problems that would need to be fixed if this were to be deployed (primarily
the fact that the entire special page looks pretty much like a copy of
LoginForm's account creation interface).

Not to mention that an account creation API is something that the core
needs and site admins should not have to rely on an extension to install it.

I'm welcome to a rewrite and refactoring of the LoginForm, if that's a goal
we want to aim towards.

*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo [at] gmail



On Fri, Aug 17, 2012 at 10:30 AM, Akshay Agarwal <akshay.leadindia [at] gmail
> wrote:

> The SignupAPI I developed indeed takes care of everything required and was
> truly developed to cater to such requirements. It would not be a good idea
> to rework the same. A lot of brainstorming and architectural discussions
> were already done while developing this project & it received input on
> several different aspects from the community. I really think that instead
> of developing something new, Extension:SignupAPI should be given a chance
> for deployment because it solves several requirements including the
> tracking of what events are most effective in creating accounts and then
> having the ability to suggest suitable exit activities. Also, the UI was
> totally revamped to make it visually appealing. Client side validations for
> user input have also been implemented including the ability to alert user
> if his desired username has already been taken while he enters it on the
> signup form. The extension also does a lot of refactoring of the existing
> SpecialLoginPage by taking out the account creation logic from it and then
> putting it in its own API. The extension has also received extensive
> testing by several developers including Santhosh who tested it out with
> internationalized usernames & suggested relevant bugs which I fixed.
>
> Some things came up and I didn't get back to working on SignupAPI, but I'm
> really keen on helping now & wish to work towards deploying the extension.
> I need a mentor to help me through the process because it seems that many
> parts of the development process have significantly changed.
>
> Thanks & Regards
> Akshay Agarwal
> Software Developer
> Directi
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


datzrott at alizeepathology

Aug 17, 2012, 7:57 AM

Post #16 of 22 (3066 views)
Permalink
Re: How to create account by API? [In reply to]

>User account creation is something that is pretty critical to the MediaWiki
>infrastructure. If we're going to be completely revamping the signup page,
it
>should not be done in an extension.
>
>Furthermore, looking at the extension's code now, there are numerous design
>problems that would need to be fixed if this were to be deployed (primarily
the
>fact that the entire special page looks pretty much like a copy of
LoginForm's
>account creation interface).
>
>Not to mention that an account creation API is something that the core
needs and
>site admins should not have to rely on an extension to install it.
>
>I'm welcome to a rewrite and refactoring of the LoginForm, if that's a goal
we
>want to aim towards.

Still we should take note of the lessons he learned when he made his
extension and apply them to development of a API in the core, should we go
that route.

I agree that this should be a core feature and not an extension. This seems
like the sort of thing that many Wikis will need and I'm somewhat surprised
the request for someone to make it doesn't come up more often.

Thank you,
Derric Atzrott


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


tylerromeo at gmail

Aug 17, 2012, 8:04 AM

Post #17 of 22 (3077 views)
Permalink
Re: How to create account by API? [In reply to]

Agreed. However, it should be noted that an account creation API has
already been created (and approved), and is currently waiting on
dependencies to be merged. https://gerrit.wikimedia.org/r/18127

*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo [at] gmail



On Fri, Aug 17, 2012 at 10:57 AM, Derric Atzrott <
datzrott [at] alizeepathology> wrote:

> >User account creation is something that is pretty critical to the
> MediaWiki
> >infrastructure. If we're going to be completely revamping the signup page,
> it
> >should not be done in an extension.
> >
> >Furthermore, looking at the extension's code now, there are numerous
> design
> >problems that would need to be fixed if this were to be deployed
> (primarily
> the
> >fact that the entire special page looks pretty much like a copy of
> LoginForm's
> >account creation interface).
> >
> >Not to mention that an account creation API is something that the core
> needs and
> >site admins should not have to rely on an extension to install it.
> >
> >I'm welcome to a rewrite and refactoring of the LoginForm, if that's a
> goal
> we
> >want to aim towards.
>
> Still we should take note of the lessons he learned when he made his
> extension and apply them to development of a API in the core, should we go
> that route.
>
> I agree that this should be a core feature and not an extension. This
> seems
> like the sort of thing that many Wikis will need and I'm somewhat surprised
> the request for someone to make it doesn't come up more often.
>
> Thank you,
> Derric Atzrott
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


akshay.leadindia at gmail

Aug 17, 2012, 8:09 AM

Post #18 of 22 (3069 views)
Permalink
Re: How to create account by API? [In reply to]

I am not sure how stuff works now but at the time I was working on this
project, any features missing in the MediaWiki codebase were first
developed as an extension, reviewed, tested and then integrated in the core.

The current version of the SpecialPage looks similar to LoginForm because
it was indeed derived from there & one of the main goals for this project
was to remove the account creation code from SpecialUserLogin & put it
inside its own SpecialPage. I do realize that some refactoring might still
be needed but I definitely can say that the efforts to do that would be
much lesser than rewriting the entire module because the new module would
again have to go through similar iterations through which SignupAPI already
went.

Tyler, I really appreciate your efforts in developing a new API & I would
encourage you to contribute with all the learning that you have had in this
project to getting SignupAPI deployed because the project involves many
more things than just an additional API, many of which I have conveyed in
my previous mail.

On Fri, Aug 17, 2012 at 8:27 PM, Derric Atzrott <
datzrott [at] alizeepathology> wrote:

> >User account creation is something that is pretty critical to the
> MediaWiki
> >infrastructure. If we're going to be completely revamping the signup page,
> it
> >should not be done in an extension.
> >
> >Furthermore, looking at the extension's code now, there are numerous
> design
> >problems that would need to be fixed if this were to be deployed
> (primarily
> the
> >fact that the entire special page looks pretty much like a copy of
> LoginForm's
> >account creation interface).
> >
> >Not to mention that an account creation API is something that the core
> needs and
> >site admins should not have to rely on an extension to install it.
> >
> >I'm welcome to a rewrite and refactoring of the LoginForm, if that's a
> goal
> we
> >want to aim towards.
>
> Still we should take note of the lessons he learned when he made his
> extension and apply them to development of a API in the core, should we go
> that route.
>
> I agree that this should be a core feature and not an extension. This
> seems
> like the sort of thing that many Wikis will need and I'm somewhat surprised
> the request for someone to make it doesn't come up more often.
>
> Thank you,
> Derric Atzrott
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


tylerromeo at gmail

Aug 17, 2012, 8:30 AM

Post #19 of 22 (3068 views)
Permalink
Re: How to create account by API? [In reply to]

With items like SpecialPages and API classes, it is indeed a possibility to
first make it an extension and then integrate it, primarily because there
is little difference in how a core SpecialPage/APIBase is implemented and
how an extension is implemented. However, this workflow is not required.

The problem is that the LoginForm class is old and run-down, and we
shouldn't really be basing code off of it. A better way to go about it
would be to make use of the newer MW infrastructures like FormSpecialPage
and Status to make a cleaner implementation. The account creation API
currently in Gerrit is actually a bit of a hack (as is the Login API and
many other similar modules) because of the fact that there is not a good
separation between application logic and UI in many core features of MW. It
would be much preferred to fix this then to pile on top of the current way
things are implemented.

*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo [at] gmail



On Fri, Aug 17, 2012 at 11:09 AM, Akshay Agarwal <akshay.leadindia [at] gmail
> wrote:

> I am not sure how stuff works now but at the time I was working on this
> project, any features missing in the MediaWiki codebase were first
> developed as an extension, reviewed, tested and then integrated in the
> core.
>
> The current version of the SpecialPage looks similar to LoginForm because
> it was indeed derived from there & one of the main goals for this project
> was to remove the account creation code from SpecialUserLogin & put it
> inside its own SpecialPage. I do realize that some refactoring might still
> be needed but I definitely can say that the efforts to do that would be
> much lesser than rewriting the entire module because the new module would
> again have to go through similar iterations through which SignupAPI already
> went.
>
> Tyler, I really appreciate your efforts in developing a new API & I would
> encourage you to contribute with all the learning that you have had in this
> project to getting SignupAPI deployed because the project involves many
> more things than just an additional API, many of which I have conveyed in
> my previous mail.
>
> On Fri, Aug 17, 2012 at 8:27 PM, Derric Atzrott <
> datzrott [at] alizeepathology> wrote:
>
> > >User account creation is something that is pretty critical to the
> > MediaWiki
> > >infrastructure. If we're going to be completely revamping the signup
> page,
> > it
> > >should not be done in an extension.
> > >
> > >Furthermore, looking at the extension's code now, there are numerous
> > design
> > >problems that would need to be fixed if this were to be deployed
> > (primarily
> > the
> > >fact that the entire special page looks pretty much like a copy of
> > LoginForm's
> > >account creation interface).
> > >
> > >Not to mention that an account creation API is something that the core
> > needs and
> > >site admins should not have to rely on an extension to install it.
> > >
> > >I'm welcome to a rewrite and refactoring of the LoginForm, if that's a
> > goal
> > we
> > >want to aim towards.
> >
> > Still we should take note of the lessons he learned when he made his
> > extension and apply them to development of a API in the core, should we
> go
> > that route.
> >
> > I agree that this should be a core feature and not an extension. This
> > seems
> > like the sort of thing that many Wikis will need and I'm somewhat
> surprised
> > the request for someone to make it doesn't come up more often.
> >
> > Thank you,
> > Derric Atzrott
> >
> >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


massaf at wikimedia

Aug 17, 2012, 10:16 AM

Post #20 of 22 (3068 views)
Permalink
Re: How to create account by API? [In reply to]

This is a long thread that I just caught wind of, but I thought I'd
interject with a few notes.

The E3 team is going to start doing experiments on the account creation
process, starting with the signup page. The front-end is going to be
reworked to conform to the design team's new "Agora" standards, like so:

http://www.mediawiki.org/wiki/Account_creation_user_experience

As for the API: we are going to make some improvements to it as part of our
first experiment. Yes, it is functional now, but we need to do a bit of
hacking to support our proposed UX improvements, as well as make it more
consistent with WMF JavaScript guidelines. If someone wants to improve the
signup template in core, that would be excellent - but since our team needs
to move quickly, we're likely going to just going to make our own fork of
the extension and display the proposed template for users in a small
experimental bucket.

Feel free to email me if you have questions. :-)

Cheers,
Munaf

On Fri, Aug 17, 2012 at 8:30 AM, Tyler Romeo <tylerromeo [at] gmail> wrote:

> With items like SpecialPages and API classes, it is indeed a possibility to
> first make it an extension and then integrate it, primarily because there
> is little difference in how a core SpecialPage/APIBase is implemented and
> how an extension is implemented. However, this workflow is not required.
>
> The problem is that the LoginForm class is old and run-down, and we
> shouldn't really be basing code off of it. A better way to go about it
> would be to make use of the newer MW infrastructures like FormSpecialPage
> and Status to make a cleaner implementation. The account creation API
> currently in Gerrit is actually a bit of a hack (as is the Login API and
> many other similar modules) because of the fact that there is not a good
> separation between application logic and UI in many core features of MW. It
> would be much preferred to fix this then to pile on top of the current way
> things are implemented.
>
> *--*
> *Tyler Romeo*
> Stevens Institute of Technology, Class of 2015
> Major in Computer Science
> www.whizkidztech.com | tylerromeo [at] gmail
>
>
>
> On Fri, Aug 17, 2012 at 11:09 AM, Akshay Agarwal <
> akshay.leadindia [at] gmail
> > wrote:
>
> > I am not sure how stuff works now but at the time I was working on this
> > project, any features missing in the MediaWiki codebase were first
> > developed as an extension, reviewed, tested and then integrated in the
> > core.
> >
> > The current version of the SpecialPage looks similar to LoginForm because
> > it was indeed derived from there & one of the main goals for this project
> > was to remove the account creation code from SpecialUserLogin & put it
> > inside its own SpecialPage. I do realize that some refactoring might
> still
> > be needed but I definitely can say that the efforts to do that would be
> > much lesser than rewriting the entire module because the new module would
> > again have to go through similar iterations through which SignupAPI
> already
> > went.
> >
> > Tyler, I really appreciate your efforts in developing a new API & I would
> > encourage you to contribute with all the learning that you have had in
> this
> > project to getting SignupAPI deployed because the project involves many
> > more things than just an additional API, many of which I have conveyed in
> > my previous mail.
> >
> > On Fri, Aug 17, 2012 at 8:27 PM, Derric Atzrott <
> > datzrott [at] alizeepathology> wrote:
> >
> > > >User account creation is something that is pretty critical to the
> > > MediaWiki
> > > >infrastructure. If we're going to be completely revamping the signup
> > page,
> > > it
> > > >should not be done in an extension.
> > > >
> > > >Furthermore, looking at the extension's code now, there are numerous
> > > design
> > > >problems that would need to be fixed if this were to be deployed
> > > (primarily
> > > the
> > > >fact that the entire special page looks pretty much like a copy of
> > > LoginForm's
> > > >account creation interface).
> > > >
> > > >Not to mention that an account creation API is something that the core
> > > needs and
> > > >site admins should not have to rely on an extension to install it.
> > > >
> > > >I'm welcome to a rewrite and refactoring of the LoginForm, if that's a
> > > goal
> > > we
> > > >want to aim towards.
> > >
> > > Still we should take note of the lessons he learned when he made his
> > > extension and apply them to development of a API in the core, should we
> > go
> > > that route.
> > >
> > > I agree that this should be a core feature and not an extension. This
> > > seems
> > > like the sort of thing that many Wikis will need and I'm somewhat
> > surprised
> > > the request for someone to make it doesn't come up more often.
> > >
> > > Thank you,
> > > Derric Atzrott
> > >
> > >
> > > _______________________________________________
> > > Wikitech-l mailing list
> > > Wikitech-l [at] lists
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


akshay.leadindia at gmail

Aug 20, 2012, 7:52 AM

Post #21 of 22 (3048 views)
Permalink
Re: How to create account by API? [In reply to]

Hey Munaf,

Can we schedule a quick IRC meet sometime today to discuss this, I can help
on incorporating the required changes.

Akshay

On Fri, Aug 17, 2012 at 10:46 PM, Munaf Assaf <massaf [at] wikimedia> wrote:

> This is a long thread that I just caught wind of, but I thought I'd
> interject with a few notes.
>
> The E3 team is going to start doing experiments on the account creation
> process, starting with the signup page. The front-end is going to be
> reworked to conform to the design team's new "Agora" standards, like so:
>
> http://www.mediawiki.org/wiki/Account_creation_user_experience
>
> As for the API: we are going to make some improvements to it as part of our
> first experiment. Yes, it is functional now, but we need to do a bit of
> hacking to support our proposed UX improvements, as well as make it more
> consistent with WMF JavaScript guidelines. If someone wants to improve the
> signup template in core, that would be excellent - but since our team needs
> to move quickly, we're likely going to just going to make our own fork of
> the extension and display the proposed template for users in a small
> experimental bucket.
>
> Feel free to email me if you have questions. :-)
>
> Cheers,
> Munaf
>
> On Fri, Aug 17, 2012 at 8:30 AM, Tyler Romeo <tylerromeo [at] gmail> wrote:
>
> > With items like SpecialPages and API classes, it is indeed a possibility
> to
> > first make it an extension and then integrate it, primarily because there
> > is little difference in how a core SpecialPage/APIBase is implemented and
> > how an extension is implemented. However, this workflow is not required.
> >
> > The problem is that the LoginForm class is old and run-down, and we
> > shouldn't really be basing code off of it. A better way to go about it
> > would be to make use of the newer MW infrastructures like FormSpecialPage
> > and Status to make a cleaner implementation. The account creation API
> > currently in Gerrit is actually a bit of a hack (as is the Login API and
> > many other similar modules) because of the fact that there is not a good
> > separation between application logic and UI in many core features of MW.
> It
> > would be much preferred to fix this then to pile on top of the current
> way
> > things are implemented.
> >
> > *--*
> > *Tyler Romeo*
> > Stevens Institute of Technology, Class of 2015
> > Major in Computer Science
> > www.whizkidztech.com | tylerromeo [at] gmail
> >
> >
> >
> > On Fri, Aug 17, 2012 at 11:09 AM, Akshay Agarwal <
> > akshay.leadindia [at] gmail
> > > wrote:
> >
> > > I am not sure how stuff works now but at the time I was working on this
> > > project, any features missing in the MediaWiki codebase were first
> > > developed as an extension, reviewed, tested and then integrated in the
> > > core.
> > >
> > > The current version of the SpecialPage looks similar to LoginForm
> because
> > > it was indeed derived from there & one of the main goals for this
> project
> > > was to remove the account creation code from SpecialUserLogin & put it
> > > inside its own SpecialPage. I do realize that some refactoring might
> > still
> > > be needed but I definitely can say that the efforts to do that would be
> > > much lesser than rewriting the entire module because the new module
> would
> > > again have to go through similar iterations through which SignupAPI
> > already
> > > went.
> > >
> > > Tyler, I really appreciate your efforts in developing a new API & I
> would
> > > encourage you to contribute with all the learning that you have had in
> > this
> > > project to getting SignupAPI deployed because the project involves many
> > > more things than just an additional API, many of which I have conveyed
> in
> > > my previous mail.
> > >
> > > On Fri, Aug 17, 2012 at 8:27 PM, Derric Atzrott <
> > > datzrott [at] alizeepathology> wrote:
> > >
> > > > >User account creation is something that is pretty critical to the
> > > > MediaWiki
> > > > >infrastructure. If we're going to be completely revamping the signup
> > > page,
> > > > it
> > > > >should not be done in an extension.
> > > > >
> > > > >Furthermore, looking at the extension's code now, there are numerous
> > > > design
> > > > >problems that would need to be fixed if this were to be deployed
> > > > (primarily
> > > > the
> > > > >fact that the entire special page looks pretty much like a copy of
> > > > LoginForm's
> > > > >account creation interface).
> > > > >
> > > > >Not to mention that an account creation API is something that the
> core
> > > > needs and
> > > > >site admins should not have to rely on an extension to install it.
> > > > >
> > > > >I'm welcome to a rewrite and refactoring of the LoginForm, if
> that's a
> > > > goal
> > > > we
> > > > >want to aim towards.
> > > >
> > > > Still we should take note of the lessons he learned when he made his
> > > > extension and apply them to development of a API in the core, should
> we
> > > go
> > > > that route.
> > > >
> > > > I agree that this should be a core feature and not an extension.
> This
> > > > seems
> > > > like the sort of thing that many Wikis will need and I'm somewhat
> > > surprised
> > > > the request for someone to make it doesn't come up more often.
> > > >
> > > > Thank you,
> > > > Derric Atzrott
> > > >
> > > >
> > > > _______________________________________________
> > > > Wikitech-l mailing list
> > > > Wikitech-l [at] lists
> > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > >
> > > _______________________________________________
> > > Wikitech-l mailing list
> > > Wikitech-l [at] lists
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


massaf at wikimedia

Aug 20, 2012, 9:47 AM

Post #22 of 22 (3044 views)
Permalink
Re: How to create account by API? [In reply to]

Ashkay,

I'm actually the designer on it, not the developers (Ori Livneh and S Page). We're still in the midst of planning the experiment, so it's not all ready to go yet. We'll email you with questions/etc. soon!

Thanks,
Munaf Assaf


On Monday, August 20, 2012 at 7:52 AM, Akshay Agarwal wrote:

> Hey Munaf,
>
> Can we schedule a quick IRC meet sometime today to discuss this, I can help
> on incorporating the required changes.
>
> Akshay
>
> On Fri, Aug 17, 2012 at 10:46 PM, Munaf Assaf <massaf [at] wikimedia (mailto:massaf [at] wikimedia)> wrote:
>
> > This is a long thread that I just caught wind of, but I thought I'd
> > interject with a few notes.
> >
> > The E3 team is going to start doing experiments on the account creation
> > process, starting with the signup page. The front-end is going to be
> > reworked to conform to the design team's new "Agora" standards, like so:
> >
> > http://www.mediawiki.org/wiki/Account_creation_user_experience
> >
> > As for the API: we are going to make some improvements to it as part of our
> > first experiment. Yes, it is functional now, but we need to do a bit of
> > hacking to support our proposed UX improvements, as well as make it more
> > consistent with WMF JavaScript guidelines. If someone wants to improve the
> > signup template in core, that would be excellent - but since our team needs
> > to move quickly, we're likely going to just going to make our own fork of
> > the extension and display the proposed template for users in a small
> > experimental bucket.
> >
> > Feel free to email me if you have questions. :-)
> >
> > Cheers,
> > Munaf
> >
> > On Fri, Aug 17, 2012 at 8:30 AM, Tyler Romeo <tylerromeo [at] gmail (mailto:tylerromeo [at] gmail)> wrote:
> >
> > > With items like SpecialPages and API classes, it is indeed a possibility
> > to
> > > first make it an extension and then integrate it, primarily because there
> > > is little difference in how a core SpecialPage/APIBase is implemented and
> > > how an extension is implemented. However, this workflow is not required.
> > >
> > > The problem is that the LoginForm class is old and run-down, and we
> > > shouldn't really be basing code off of it. A better way to go about it
> > > would be to make use of the newer MW infrastructures like FormSpecialPage
> > > and Status to make a cleaner implementation. The account creation API
> > > currently in Gerrit is actually a bit of a hack (as is the Login API and
> > > many other similar modules) because of the fact that there is not a good
> > > separation between application logic and UI in many core features of MW.
> > >
> >
> > It
> > > would be much preferred to fix this then to pile on top of the current
> >
> > way
> > > things are implemented.
> > >
> > > *--*
> > > *Tyler Romeo*
> > > Stevens Institute of Technology, Class of 2015
> > > Major in Computer Science
> > > www.whizkidztech.com (http://www.whizkidztech.com) | tylerromeo [at] gmail (mailto:tylerromeo [at] gmail)
> > >
> > >
> > >
> > > On Fri, Aug 17, 2012 at 11:09 AM, Akshay Agarwal <
> > > akshay.leadindia [at] gmail (mailto:akshay.leadindia [at] gmail)
> > > > wrote:
> > >
> > >
> > > > I am not sure how stuff works now but at the time I was working on this
> > > > project, any features missing in the MediaWiki codebase were first
> > > > developed as an extension, reviewed, tested and then integrated in the
> > > > core.
> > > >
> > > > The current version of the SpecialPage looks similar to LoginForm
> > because
> > > > it was indeed derived from there & one of the main goals for this
> > >
> >
> > project
> > > > was to remove the account creation code from SpecialUserLogin & put it
> > > > inside its own SpecialPage. I do realize that some refactoring might
> > > >
> > >
> > > still
> > > > be needed but I definitely can say that the efforts to do that would be
> > > > much lesser than rewriting the entire module because the new module
> > > >
> > >
> > >
> >
> > would
> > > > again have to go through similar iterations through which SignupAPI
> > >
> > > already
> > > > went.
> > > >
> > > > Tyler, I really appreciate your efforts in developing a new API & I
> > would
> > > > encourage you to contribute with all the learning that you have had in
> > >
> > > this
> > > > project to getting SignupAPI deployed because the project involves many
> > > > more things than just an additional API, many of which I have conveyed
> > > >
> > >
> > >
> >
> > in
> > > > my previous mail.
> > > >
> > > > On Fri, Aug 17, 2012 at 8:27 PM, Derric Atzrott <
> > > > datzrott [at] alizeepathology (mailto:datzrott [at] alizeepathology)> wrote:
> > > >
> > > > > > User account creation is something that is pretty critical to the
> > > > > MediaWiki
> > > > > > infrastructure. If we're going to be completely revamping the signup
> > > > >
> > > > >
> > > >
> > > > page,
> > > > > it
> > > > > > should not be done in an extension.
> > > > > >
> > > > > > Furthermore, looking at the extension's code now, there are numerous
> > > > > design
> > > > > > problems that would need to be fixed if this were to be deployed
> > > > >
> > > > > (primarily
> > > > > the
> > > > > > fact that the entire special page looks pretty much like a copy of
> > > > >
> > > > > LoginForm's
> > > > > > account creation interface).
> > > > > >
> > > > > > Not to mention that an account creation API is something that the
> > core
> > > > > needs and
> > > > > > site admins should not have to rely on an extension to install it.
> > > > > >
> > > > > > I'm welcome to a rewrite and refactoring of the LoginForm, if
> > that's a
> > > > > goal
> > > > > we
> > > > > > want to aim towards.
> > > > >
> > > > >
> > > > > Still we should take note of the lessons he learned when he made his
> > > > > extension and apply them to development of a API in the core, should
> > > > >
> > > >
> > >
> >
> > we
> > > > go
> > > > > that route.
> > > > >
> > > > > I agree that this should be a core feature and not an extension.
> > This
> > > > > seems
> > > > > like the sort of thing that many Wikis will need and I'm somewhat
> > > > >
> > > >
> > > > surprised
> > > > > the request for someone to make it doesn't come up more often.
> > > > >
> > > > > Thank you,
> > > > > Derric Atzrott
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Wikitech-l mailing list
> > > > > Wikitech-l [at] lists (mailto:Wikitech-l [at] lists)
> > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > > >
> > > >
> > > > _______________________________________________
> > > > Wikitech-l mailing list
> > > > Wikitech-l [at] lists (mailto:Wikitech-l [at] lists)
> > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > >
> > >
> > > _______________________________________________
> > > Wikitech-l mailing list
> > > Wikitech-l [at] lists (mailto:Wikitech-l [at] lists)
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >
> >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists (mailto:Wikitech-l [at] lists)
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists (mailto:Wikitech-l [at] lists)
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.