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 <csteipp(a)wikimedia.org>
wrote:
On Thu, Jun 5, 2014 at 9:23 AM, Amanpreet Singh
<
amanpreet.iitr2013(a)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 <csteipp(a)wikimedia.org>
wrote:
> On Thursday, June 5, 2014, Amanpreet Singh <
amanpreet.iitr2013(a)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&forma…
> 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 <
magnusmanske(a)googlemail.com
> <javascript:;>>
> wrote:
>
> > If all you want is some quick code infusion, I can offer my PHP
class:
> >
> >
> >
>
https://bitbucket.org/magnusmanske/magnustools/src/ecb01ddc26c8129737d260d0…
>
>
> > 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 <
aklapper(a)wikimedia.org
> > <javascript:;>>
> > > 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/MWOAu…
> > > > > . 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(a)lists.wikimedia.org <javascript:;>
> > >
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > >
> >
> >
> >
> > --
> > undefined
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l(a)lists.wikimedia.org <javascript:;>
> >
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
>
>
>
> --
> Amanpreet Singh,
> IIT Roorkee
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l(a)lists.wikimedia.org <javascript:;>
>
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
--
Amanpreet Singh,
IIT Roorkee
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l