Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Amanpreet Singh
Thanks a lot Chris for helping in solving this.


On Thu, Jun 5, 2014 at 11:37 PM, Amanpreet Singh <
amanpreet.iitr2...@gmail.com> wrote:

> Thanks Chris for the help,
> I have tried your script and I think this part atleast is fine, I have
> pinged you with output of the script.
>
>
> On Thu, Jun 5, 2014 at 11:05 PM, Chris Steipp 
> wrote:
>
>> On Thu, Jun 5, 2014 at 9:23 AM, Amanpreet Singh <
>> amanpreet.iitr2...@gmail.com> wrote:
>>
>> > Dear Chris
>> > I tried this but still no result it gives same error NULL,
>> > I also copied your entire demo and pasted it to test but it also
>> returned
>> > same result, maybe its something related to canonicalServerUrl,
>> > I also tried Magnus one it gives 'Error retrieving token:
>> > mwoauth-oauth-exception'.
>> >
>>
>> One of the best ways to debug this is to start using a local instance, so
>> you can look at the server's debug log. Then you can see what error the
>> server is giving. MediaWiki vagrant has an oauth role, so you can just
>> enable role and start using it.
>>
>> canonicalServerUrl is only used for the identity check-- it sounds like
>> you're not even to that point yet, so that shouldn't be an issue (if it
>> was, the client library would say you have an invalid JWT).
>>
>> Feel free to ping me on IRC (csteipp) and I can try to walk you through.
>> You may want to try this script here:
>>
>> https://www.mediawiki.org/wiki/User:CSteipp/OAuth_debug_client
>>
>> That should at least prove it's not a connectivity / curl issue.
>>
>>
>> >
>> >
>> > On Thu, Jun 5, 2014 at 9:14 PM, Chris Steipp 
>> > wrote:
>> >
>> > > On Thursday, June 5, 2014, Amanpreet Singh <
>> amanpreet.iitr2...@gmail.com
>> > >
>> > > wrote:
>> > >
>> > > > Thanks for quick reply,
>> > > > I am just getting NULL after making an OAuth call and that callback
>> > > wasn't
>> > > > confirmed, I hope I am making call to correct url which is
>> > > >
>> > > >
>> > >
>> >
>> https://mediawiki.org/wiki/index.php?title=Special:OAuth/initiate&format=json&oauth_callback=oob
>> > > > What I should get back is a token with key and a secret.
>> > > >
>> > >
>> > > Try using www.mediawiki.org-- otherwise the redirect will happen the
>> > > signature won't verify.
>> > >
>> > >
>> > > >
>> > > >
>> > > > On Thu, Jun 5, 2014 at 8:27 PM, Magnus Manske <
>> > > magnusman...@googlemail.com
>> > > > >
>> > > > wrote:
>> > > >
>> > > > > If all you want is some quick code infusion, I can offer my PHP
>> > class:
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master
>> > > > >
>> > > > > You'd have to patch the "loadIniFile" method to point at your ini
>> > file,
>> > > > but
>> > > > > the rest should work as is. High-level method are towards the end,
>> > > > usually
>> > > > > self-explaining like "setLabel".
>> > > > >
>> > > > > Cheers,
>> > > > > Magnus
>> > > > >
>> > > > >
>> > > > > On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper <
>> > aklap...@wikimedia.org
>> > > > >
>> > > > > wrote:
>> > > > >
>> > > > > > Hi,
>> > > > > >
>> > > > > > On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
>> > > > > > > I need some help regarding my GSoC project in which I need to
>> > > > implement
>> > > > > > an
>> > > > > > > OAuth login system for a browser based plugin, so we can
>> identify
>> > > > > users.
>> > > > > > > But I am stuck and not able to get anything here >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
>> > > > > > > . Kindly help me, and tell me if further information is
>> needed.
>> > > > > >
>> > > > > > What is the problem you're facing, what have you tried already,
>> > > what's
>> > > > > > the output you get, etc.?
>> > > > > >
>> > > > > > andre
>> > > > > > --
>> > > > > > Andre Klapper | Wikimedia Bugwrangler
>> > > > > > http://blogs.gnome.org/aklapper/
>> > > > > >
>> > > > > >
>> > > > > > ___
>> > > > > > Wikitech-l mailing list
>> > > > > > Wikitech-l@lists.wikimedia.org 
>> > > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > undefined
>> > > > > ___
>> > > > > Wikitech-l mailing list
>> > > > > Wikitech-l@lists.wikimedia.org 
>> > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Amanpreet Singh,
>> > > > IIT Roorkee
>> > > > ___
>> > > > Wikitech-l mailing list
>> > > > Wikitech-l@lists.wikimedia.org 
>> > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>> > > ___
>> > > Wikitech-l mailing list
>> > > Wikitech-l@lists.wikimedia.org
>> > > https://lists.wikimedia.org/mailman/listinfo/wik

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Amanpreet Singh
Thanks Chris for the help,
I have tried your script and I think this part atleast is fine, I have
pinged you with output of the script.


On Thu, Jun 5, 2014 at 11:05 PM, Chris Steipp  wrote:

> On Thu, Jun 5, 2014 at 9:23 AM, Amanpreet Singh <
> amanpreet.iitr2...@gmail.com> wrote:
>
> > Dear Chris
> > I tried this but still no result it gives same error NULL,
> > I also copied your entire demo and pasted it to test but it also returned
> > same result, maybe its something related to canonicalServerUrl,
> > I also tried Magnus one it gives 'Error retrieving token:
> > mwoauth-oauth-exception'.
> >
>
> One of the best ways to debug this is to start using a local instance, so
> you can look at the server's debug log. Then you can see what error the
> server is giving. MediaWiki vagrant has an oauth role, so you can just
> enable role and start using it.
>
> canonicalServerUrl is only used for the identity check-- it sounds like
> you're not even to that point yet, so that shouldn't be an issue (if it
> was, the client library would say you have an invalid JWT).
>
> Feel free to ping me on IRC (csteipp) and I can try to walk you through.
> You may want to try this script here:
>
> https://www.mediawiki.org/wiki/User:CSteipp/OAuth_debug_client
>
> That should at least prove it's not a connectivity / curl issue.
>
>
> >
> >
> > On Thu, Jun 5, 2014 at 9:14 PM, Chris Steipp 
> > wrote:
> >
> > > On Thursday, June 5, 2014, Amanpreet Singh <
> amanpreet.iitr2...@gmail.com
> > >
> > > wrote:
> > >
> > > > Thanks for quick reply,
> > > > I am just getting NULL after making an OAuth call and that callback
> > > wasn't
> > > > confirmed, I hope I am making call to correct url which is
> > > >
> > > >
> > >
> >
> https://mediawiki.org/wiki/index.php?title=Special:OAuth/initiate&format=json&oauth_callback=oob
> > > > What I should get back is a token with key and a secret.
> > > >
> > >
> > > Try using www.mediawiki.org-- otherwise the redirect will happen the
> > > signature won't verify.
> > >
> > >
> > > >
> > > >
> > > > On Thu, Jun 5, 2014 at 8:27 PM, Magnus Manske <
> > > magnusman...@googlemail.com
> > > > >
> > > > wrote:
> > > >
> > > > > If all you want is some quick code infusion, I can offer my PHP
> > class:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master
> > > > >
> > > > > You'd have to patch the "loadIniFile" method to point at your ini
> > file,
> > > > but
> > > > > the rest should work as is. High-level method are towards the end,
> > > > usually
> > > > > self-explaining like "setLabel".
> > > > >
> > > > > Cheers,
> > > > > Magnus
> > > > >
> > > > >
> > > > > On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper <
> > aklap...@wikimedia.org
> > > > >
> > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
> > > > > > > I need some help regarding my GSoC project in which I need to
> > > > implement
> > > > > > an
> > > > > > > OAuth login system for a browser based plugin, so we can
> identify
> > > > > users.
> > > > > > > But I am stuck and not able to get anything here >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
> > > > > > > . Kindly help me, and tell me if further information is needed.
> > > > > >
> > > > > > What is the problem you're facing, what have you tried already,
> > > what's
> > > > > > the output you get, etc.?
> > > > > >
> > > > > > andre
> > > > > > --
> > > > > > Andre Klapper | Wikimedia Bugwrangler
> > > > > > http://blogs.gnome.org/aklapper/
> > > > > >
> > > > > >
> > > > > > ___
> > > > > > Wikitech-l mailing list
> > > > > > Wikitech-l@lists.wikimedia.org 
> > > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > undefined
> > > > > ___
> > > > > Wikitech-l mailing list
> > > > > Wikitech-l@lists.wikimedia.org 
> > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Amanpreet Singh,
> > > > IIT Roorkee
> > > > ___
> > > > Wikitech-l mailing list
> > > > Wikitech-l@lists.wikimedia.org 
> > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > ___
> > > Wikitech-l mailing list
> > > Wikitech-l@lists.wikimedia.org
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >
> >
> >
> >
> > --
> > Amanpreet Singh,
> > IIT Roorkee
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> ___
> Wi

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Chris Steipp
On Thu, Jun 5, 2014 at 9:23 AM, Amanpreet Singh <
amanpreet.iitr2...@gmail.com> wrote:

> Dear Chris
> I tried this but still no result it gives same error NULL,
> I also copied your entire demo and pasted it to test but it also returned
> same result, maybe its something related to canonicalServerUrl,
> I also tried Magnus one it gives 'Error retrieving token:
> mwoauth-oauth-exception'.
>

One of the best ways to debug this is to start using a local instance, so
you can look at the server's debug log. Then you can see what error the
server is giving. MediaWiki vagrant has an oauth role, so you can just
enable role and start using it.

canonicalServerUrl is only used for the identity check-- it sounds like
you're not even to that point yet, so that shouldn't be an issue (if it
was, the client library would say you have an invalid JWT).

Feel free to ping me on IRC (csteipp) and I can try to walk you through.
You may want to try this script here:

https://www.mediawiki.org/wiki/User:CSteipp/OAuth_debug_client

That should at least prove it's not a connectivity / curl issue.


>
>
> On Thu, Jun 5, 2014 at 9:14 PM, Chris Steipp 
> wrote:
>
> > On Thursday, June 5, 2014, Amanpreet Singh  >
> > wrote:
> >
> > > Thanks for quick reply,
> > > I am just getting NULL after making an OAuth call and that callback
> > wasn't
> > > confirmed, I hope I am making call to correct url which is
> > >
> > >
> >
> https://mediawiki.org/wiki/index.php?title=Special:OAuth/initiate&format=json&oauth_callback=oob
> > > What I should get back is a token with key and a secret.
> > >
> >
> > Try using www.mediawiki.org-- otherwise the redirect will happen the
> > signature won't verify.
> >
> >
> > >
> > >
> > > On Thu, Jun 5, 2014 at 8:27 PM, Magnus Manske <
> > magnusman...@googlemail.com
> > > >
> > > wrote:
> > >
> > > > If all you want is some quick code infusion, I can offer my PHP
> class:
> > > >
> > > >
> > > >
> > >
> >
> https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master
> > > >
> > > > You'd have to patch the "loadIniFile" method to point at your ini
> file,
> > > but
> > > > the rest should work as is. High-level method are towards the end,
> > > usually
> > > > self-explaining like "setLabel".
> > > >
> > > > Cheers,
> > > > Magnus
> > > >
> > > >
> > > > On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper <
> aklap...@wikimedia.org
> > > >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
> > > > > > I need some help regarding my GSoC project in which I need to
> > > implement
> > > > > an
> > > > > > OAuth login system for a browser based plugin, so we can identify
> > > > users.
> > > > > > But I am stuck and not able to get anything here >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
> > > > > > . Kindly help me, and tell me if further information is needed.
> > > > >
> > > > > What is the problem you're facing, what have you tried already,
> > what's
> > > > > the output you get, etc.?
> > > > >
> > > > > andre
> > > > > --
> > > > > Andre Klapper | Wikimedia Bugwrangler
> > > > > http://blogs.gnome.org/aklapper/
> > > > >
> > > > >
> > > > > ___
> > > > > Wikitech-l mailing list
> > > > > Wikitech-l@lists.wikimedia.org 
> > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > undefined
> > > > ___
> > > > Wikitech-l mailing list
> > > > Wikitech-l@lists.wikimedia.org 
> > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > >
> > >
> > >
> > >
> > > --
> > > Amanpreet Singh,
> > > IIT Roorkee
> > > ___
> > > Wikitech-l mailing list
> > > Wikitech-l@lists.wikimedia.org 
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
>
>
>
> --
> Amanpreet Singh,
> IIT Roorkee
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Amanpreet Singh
Dear Chris
I tried this but still no result it gives same error NULL,
I also copied your entire demo and pasted it to test but it also returned
same result, maybe its something related to canonicalServerUrl,
I also tried Magnus one it gives 'Error retrieving token:
mwoauth-oauth-exception'.


On Thu, Jun 5, 2014 at 9:14 PM, Chris Steipp  wrote:

> On Thursday, June 5, 2014, Amanpreet Singh 
> wrote:
>
> > Thanks for quick reply,
> > I am just getting NULL after making an OAuth call and that callback
> wasn't
> > confirmed, I hope I am making call to correct url which is
> >
> >
> https://mediawiki.org/wiki/index.php?title=Special:OAuth/initiate&format=json&oauth_callback=oob
> > What I should get back is a token with key and a secret.
> >
>
> Try using www.mediawiki.org-- otherwise the redirect will happen the
> signature won't verify.
>
>
> >
> >
> > On Thu, Jun 5, 2014 at 8:27 PM, Magnus Manske <
> magnusman...@googlemail.com
> > >
> > wrote:
> >
> > > If all you want is some quick code infusion, I can offer my PHP class:
> > >
> > >
> > >
> >
> https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master
> > >
> > > You'd have to patch the "loadIniFile" method to point at your ini file,
> > but
> > > the rest should work as is. High-level method are towards the end,
> > usually
> > > self-explaining like "setLabel".
> > >
> > > Cheers,
> > > Magnus
> > >
> > >
> > > On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper  > >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
> > > > > I need some help regarding my GSoC project in which I need to
> > implement
> > > > an
> > > > > OAuth login system for a browser based plugin, so we can identify
> > > users.
> > > > > But I am stuck and not able to get anything here >
> > > > >
> > > >
> > >
> >
> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
> > > > > . Kindly help me, and tell me if further information is needed.
> > > >
> > > > What is the problem you're facing, what have you tried already,
> what's
> > > > the output you get, etc.?
> > > >
> > > > andre
> > > > --
> > > > Andre Klapper | Wikimedia Bugwrangler
> > > > http://blogs.gnome.org/aklapper/
> > > >
> > > >
> > > > ___
> > > > Wikitech-l mailing list
> > > > Wikitech-l@lists.wikimedia.org 
> > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > > >
> > >
> > >
> > >
> > > --
> > > undefined
> > > ___
> > > Wikitech-l mailing list
> > > Wikitech-l@lists.wikimedia.org 
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >
> >
> >
> >
> > --
> > Amanpreet Singh,
> > IIT Roorkee
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org 
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



-- 
Amanpreet Singh,
IIT Roorkee
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Chris Steipp
On Thursday, June 5, 2014, Amanpreet Singh 
wrote:

> Thanks for quick reply,
> I am just getting NULL after making an OAuth call and that callback wasn't
> confirmed, I hope I am making call to correct url which is
>
> https://mediawiki.org/wiki/index.php?title=Special:OAuth/initiate&format=json&oauth_callback=oob
> What I should get back is a token with key and a secret.
>

Try using www.mediawiki.org-- otherwise the redirect will happen the
signature won't verify.


>
>
> On Thu, Jun 5, 2014 at 8:27 PM, Magnus Manske  >
> wrote:
>
> > If all you want is some quick code infusion, I can offer my PHP class:
> >
> >
> >
> https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master
> >
> > You'd have to patch the "loadIniFile" method to point at your ini file,
> but
> > the rest should work as is. High-level method are towards the end,
> usually
> > self-explaining like "setLabel".
> >
> > Cheers,
> > Magnus
> >
> >
> > On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper  >
> > wrote:
> >
> > > Hi,
> > >
> > > On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
> > > > I need some help regarding my GSoC project in which I need to
> implement
> > > an
> > > > OAuth login system for a browser based plugin, so we can identify
> > users.
> > > > But I am stuck and not able to get anything here >
> > > >
> > >
> >
> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
> > > > . Kindly help me, and tell me if further information is needed.
> > >
> > > What is the problem you're facing, what have you tried already, what's
> > > the output you get, etc.?
> > >
> > > andre
> > > --
> > > Andre Klapper | Wikimedia Bugwrangler
> > > http://blogs.gnome.org/aklapper/
> > >
> > >
> > > ___
> > > Wikitech-l mailing list
> > > Wikitech-l@lists.wikimedia.org 
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >
> >
> >
> >
> > --
> > undefined
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org 
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
>
>
>
> --
> Amanpreet Singh,
> IIT Roorkee
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org 
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Amanpreet Singh
Dear Magnus,
Thanks for this I will have a look.


On Thu, Jun 5, 2014 at 8:34 PM, Amanpreet Singh <
amanpreet.iitr2...@gmail.com> wrote:

> Thanks for quick reply,
> I am just getting NULL after making an OAuth call and that callback wasn't
> confirmed, I hope I am making call to correct url which is
> https://mediawiki.org/wiki/index.php?title=Special:OAuth/initiate&format=json&oauth_callback=oob
> What I should get back is a token with key and a secret.
>
>
> On Thu, Jun 5, 2014 at 8:27 PM, Magnus Manske  > wrote:
>
>> If all you want is some quick code infusion, I can offer my PHP class:
>>
>>
>> https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master
>>
>> You'd have to patch the "loadIniFile" method to point at your ini file,
>> but
>> the rest should work as is. High-level method are towards the end, usually
>> self-explaining like "setLabel".
>>
>> Cheers,
>> Magnus
>>
>>
>> On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper 
>> wrote:
>>
>> > Hi,
>> >
>> > On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
>> > > I need some help regarding my GSoC project in which I need to
>> implement
>> > an
>> > > OAuth login system for a browser based plugin, so we can identify
>> users.
>> > > But I am stuck and not able to get anything here >
>> > >
>> >
>> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
>> > > . Kindly help me, and tell me if further information is needed.
>> >
>> > What is the problem you're facing, what have you tried already, what's
>> > the output you get, etc.?
>> >
>> > andre
>> > --
>> > Andre Klapper | Wikimedia Bugwrangler
>> > http://blogs.gnome.org/aklapper/
>> >
>> >
>> > ___
>> > Wikitech-l mailing list
>> > Wikitech-l@lists.wikimedia.org
>> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>> >
>>
>>
>>
>> --
>> undefined
>> ___
>> Wikitech-l mailing list
>> Wikitech-l@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
>
>
>
> --
> Amanpreet Singh,
> IIT Roorkee
>



-- 
Amanpreet Singh,
IIT Roorkee
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Amanpreet Singh
Thanks for quick reply,
I am just getting NULL after making an OAuth call and that callback wasn't
confirmed, I hope I am making call to correct url which is
https://mediawiki.org/wiki/index.php?title=Special:OAuth/initiate&format=json&oauth_callback=oob
What I should get back is a token with key and a secret.


On Thu, Jun 5, 2014 at 8:27 PM, Magnus Manske 
wrote:

> If all you want is some quick code infusion, I can offer my PHP class:
>
>
> https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master
>
> You'd have to patch the "loadIniFile" method to point at your ini file, but
> the rest should work as is. High-level method are towards the end, usually
> self-explaining like "setLabel".
>
> Cheers,
> Magnus
>
>
> On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper 
> wrote:
>
> > Hi,
> >
> > On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
> > > I need some help regarding my GSoC project in which I need to implement
> > an
> > > OAuth login system for a browser based plugin, so we can identify
> users.
> > > But I am stuck and not able to get anything here >
> > >
> >
> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
> > > . Kindly help me, and tell me if further information is needed.
> >
> > What is the problem you're facing, what have you tried already, what's
> > the output you get, etc.?
> >
> > andre
> > --
> > Andre Klapper | Wikimedia Bugwrangler
> > http://blogs.gnome.org/aklapper/
> >
> >
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
>
>
>
> --
> undefined
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



-- 
Amanpreet Singh,
IIT Roorkee
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Magnus Manske
If all you want is some quick code infusion, I can offer my PHP class:

https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0491ccb410c4c62a3/public_html/php/oauth.php?at=master

You'd have to patch the "loadIniFile" method to point at your ini file, but
the rest should work as is. High-level method are towards the end, usually
self-explaining like "setLabel".

Cheers,
Magnus


On Thu, Jun 5, 2014 at 3:51 PM, Andre Klapper 
wrote:

> Hi,
>
> On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
> > I need some help regarding my GSoC project in which I need to implement
> an
> > OAuth login system for a browser based plugin, so we can identify users.
> > But I am stuck and not able to get anything here >
> >
> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
> > . Kindly help me, and tell me if further information is needed.
>
> What is the problem you're facing, what have you tried already, what's
> the output you get, etc.?
>
> andre
> --
> Andre Klapper | Wikimedia Bugwrangler
> http://blogs.gnome.org/aklapper/
>
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



-- 
undefined
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Andre Klapper
Hi,

On Thu, 2014-06-05 at 20:13 +0530, Amanpreet Singh wrote:
> I need some help regarding my GSoC project in which I need to implement an
> OAuth login system for a browser based plugin, so we can identify users.
> But I am stuck and not able to get anything here >
> https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
> . Kindly help me, and tell me if further information is needed.

What is the problem you're facing, what have you tried already, what's
the output you get, etc.?

andre
-- 
Andre Klapper | Wikimedia Bugwrangler
http://blogs.gnome.org/aklapper/


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Help: Needed in OAuth

2014-06-05 Thread Amanpreet Singh
Hi,
I need some help regarding my GSoC project in which I need to implement an
OAuth login system for a browser based plugin, so we can identify users.
But I am stuck and not able to get anything here >
https://github.com/apsdehal/Mediawiki-login-api/blob/master/lib/OAuth/MWOAuthClient.php#L77
. Kindly help me, and tell me if further information is needed.

-- 
Amanpreet Singh,
IIT Roorkee
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l