jsoauth for web browsers

78 views
Skip to first unread message

Mohammad Arsalan

unread,
Jan 17, 2013, 4:24:05 PM1/17/13
to jso...@googlegroups.com
Can I use jsoauth in web browsers ?? Actually I m trying but getting authorization error while requesting request token.It seems jsoauth is not making proper GET request , it is requesting OPTIONS . Please help .

Also , is it appropriate to put secret in javascript for twitter client ??

Rob Griffiths

unread,
Jan 17, 2013, 4:30:16 PM1/17/13
to jso...@googlegroups.com
It's ill advised to do so.

You can do it if CORS is supported by the API, but in Twitter's case they don't, nor would they give you an API key (beyond the one tied to your account) to allow other people to use your client.

Rob

Mohammad Arsalan

unread,
Jan 18, 2013, 3:04:17 PM1/18/13
to jso...@googlegroups.com
Thanks for your reply .

So I will not be able to use jsoauth in twitter client if client is web browser based ?

Rob Griffiths

unread,
Jan 18, 2013, 3:19:52 PM1/18/13
to jso...@googlegroups.com
Sadly no. You could of course use it in a nodejs app ad have your web client talk to that.

Mohammad Arsalan

unread,
Jan 19, 2013, 2:04:54 AM1/19/13
to jso...@googlegroups.com
Thanks for your reply and time .

Apart from web browser based twitter client , I liked your jsoauth library very much and it is very useful .

On Friday, 18 January 2013 02:54:05 UTC+5:30, Mohammad Arsalan wrote:
Reply all
Reply to author
Forward
0 new messages