You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-la...@googlegroups.com
Hi,
I've started writing an addon to add some metrics to the Twitter Web UI.
This addon generates metrics that are meant to be relative to the
"current" user. So I need to log the user to access the Twitter API [1]
(I could get the info by hacking the Twitter web UI, but don't feel
that's a good idea)
I need to do OAuth authentication. I feel this should be common enough
to have a Jetpack module somewhere, but I haven't found any. Is there
one you know about (or another Jetpack that does Twitter authentication
by another mean)?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-la...@googlegroups.com
There is an "oauthorizer" package we developed a couple of years ago
that did some nasty hacks to get oauth working purely in the browser
(typically oauth will want to redirect to a server associated with the
api key) - the code here tries to catch that case and ignore the
redirect while still keeping the other end happy).
No idea how useful this will be, but I thought it worth mentioning...
HTH,
Mark
Pelle Wessman
unread,
May 21, 2013, 5:12:48 AM5/21/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-la...@googlegroups.com
Since Twitter uses OAuth 1 and requires you to have your own consumer key and secret for your app you can't really implement this purely client side in javascript because there's simply no way that you can keep your consumer secret truly secret as required.
Some OAuth 1 implementations allows use of generic anonymous keys and secret to enable use in untrusted environments like a client side script and ordinary OAuth 2 since it doesn't really have any secrets have a standardized way in its standard on how to do client side OAuthing - sadly Twitter supports neither.
The only solution I can think of is that you create a server side API that you make your requests to Twitter through.
/ Pelle
David Bruant
unread,
May 21, 2013, 10:54:09 AM5/21/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-la...@googlegroups.com, Pelle Wessman
Le 21/05/2013 11:12, Pelle Wessman a �crit :
> Since Twitter uses OAuth 1 and requires you to have your own consumer
> key and secret for your app you can't really implement this purely
> client side in javascript because there's simply no way that you can
> keep your consumer secret truly secret as required.
>
> Some OAuth 1 implementations allows use of generic anonymous keys and
> secret to enable use in untrusted environments like a client side
> script and ordinary OAuth 2 since it doesn't really have any secrets
> have a standardized way in its standard on how to do client side
> OAuthing - sadly Twitter supports neither.
>
> The only solution I can think of is that you create a server side API
> that you make your requests to Twitter through.