bytespider / jsOAuth

JavaScript implimentation of the OAuth protocol. Currently supports version 1.0 (RFC5849) of the specification. Node.js & CommonJS compatible.
http://bytespider.github.com/jsOAuth/
MIT License
557 stars 109 forks source link

jsOAuth - Backbone.js #51

Closed searchtool closed 10 years ago

searchtool commented 10 years ago

Hi

Up to now we use jsOAuth and all work perfectly but we need to move to Backbone.js, is it is it a way to use jsOAuth with Backbone.js?

Thanks.

lukaszkorecki commented 10 years ago

I'm guessing it's just a matter of creating your own adapter and overriding the Backbone.sync function as it drives everything in the model layer w.r.t. fetching and storing models

More info: http://backbonejs.org/#Sync

searchtool commented 10 years ago

@lukaszkorecki Thanks, I will try.

First experience with Backbone.js so.... References and examples are welcome!

bytespider commented 10 years ago

I hope this helps. http://stackoverflow.com/questions/7761249/backbone-js-jsoauth

The answer by Daniel is the one you want.

searchtool commented 10 years ago

Thank you. It was helpful