Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

OAuth Support #1

Closed
natiz opened this Issue Feb 9, 2013 · 2 comments

Comments

Projects
None yet
2 participants

natiz commented Feb 9, 2013

Hey there!

I'd really love some OAuth support for this library.
Consider using this OAuth library: http://oauth.googlecode.com/svn/code/javascript/oauth.js

Thanks!

Owner

jpillora commented Feb 9, 2013

Hey Kitt0s

I'm abit wary about the file size increase, though I'll look into it tonight

On Saturday, February 9, 2013, Kitt0s wrote:

Hey there!

I'd really love some OAuth support for this library.
Consider using this OAuth library:
http://oauth.googlecode.com/svn/code/javascript/oauth.js

Thanks!


Reply to this email directly or view it on GitHubhttps://github.com/jpillora/jquery.rest/issues/1..

Owner

jpillora commented Feb 10, 2013

Hey Kitt0s,

OAuth 1.0 in JavaScript (the library you linked) is insecure in the browser as the application's secret key is required to make requests, OAuth 2.0 is more suitable and was designed with the intention of use in the browser. So I may add OAuth 2 support if enough people need it.

If you really really want OAuth 1 support and can accept the security issues, include this file https://gist.github.com/andyedinborough/1012960 and change the $.ajax to $.oauth in jquery.rest.js (untested though it should work 😊)

@jpillora jpillora closed this Feb 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment