{"id":13748796,"url":"https://github.com/bytespider/jsOAuth","last_synced_at":"2025-05-09T11:31:29.795Z","repository":{"id":721315,"uuid":"368749","full_name":"bytespider/jsOAuth","owner":"bytespider","description":"JavaScript implimentation of the OAuth protocol. Currently supports version 1.0 (RFC5849) of the specification. Node.js \u0026 CommonJS compatible.","archived":true,"fork":false,"pushed_at":"2017-11-30T11:15:11.000Z","size":25598,"stargazers_count":556,"open_issues_count":7,"forks_count":108,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-11-15T23:31:20.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://bytespider.github.com/jsOAuth/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bytespider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-11-11T11:15:50.000Z","updated_at":"2024-07-31T04:24:50.000Z","dependencies_parsed_at":"2022-07-29T08:09:56.107Z","dependency_job_id":null,"html_url":"https://github.com/bytespider/jsOAuth","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FjsOAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FjsOAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FjsOAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FjsOAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytespider","download_url":"https://codeload.github.com/bytespider/jsOAuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253240350,"owners_count":21876593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T07:00:49.534Z","updated_at":"2025-05-09T11:31:26.061Z","avatar_url":"https://github.com/bytespider.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# [Abandoned]\nThis library is old and unmaintained. There are far better and more modern alternatives.\n\n# jsOAuth - JavaScript OAuth library\n\njsOAuth is a javascript library implementing the OAuth protocol. jsOAuth aims to\nform the basis of custom clients such as Twitter and  Yahoo.\n\nWritten in JavaScript, jsOAuth aims to be a fully featured open source OAuth library for use\nin Adobe AIR, Appcelerator Titanium and PhoneGAP.\nIn fact, anywhere that javascript can be used and has cross-domain\nXMLHttpRequests. **For security reasons jsOAuth doesn't run in the browser. Browsers are only \nmentioned here for running the test suite.** If you need jsOAuth in the browser, write an extension.\n\n\nReleased under the MIT. Please see LICENSE in the project root folder for more\ninformation.\n\n## Documentation\nFind the API reference and tutorials on the [Documentation site](http://bytespider.github.com/jsOAuth/).\nFor recipes on ways to get things working with jsOAuth, try the [recipes page](https://github.com/bytespider/jsOAuth/wiki/Recipes).\nIf you need more help or discussion, try the [Google jsOAuth Group](https://groups.google.com/group/jsoauth).\n\n## Usage\n\nDownload the minified library from the [distribution directory](https://github.com/bytespider/jsOAuth/tree/master/dist) and include it in your html.\n\n\t\u003cscript type=\"text/javascript\" src=\"library/jsOAuth-1.3.7.min.js\"\u003e\u003c/script\u003e\n\nThis gives you a global OAuth object for you to set up and make requests with.\nSetting it up is simple.\n\n    \u003cscript type=\"text/javascript\"\u003e\n        var oauth, options;\n\n        options = {\n            enablePrivilege: true,\n            consumerKey: 'ba9df9055c77f338',\n            consumerSecret: '846ffe1ec3b18989e73fe7fff833'\n        };\n\n        oauth = OAuth(options);\n    \u003c/script\u003e\n\n*Note: **EnablePrivilege** lets you test jsOAuth in Firefox 3, Firefox \u003e= 5 doesn't work*  \nYou can test in chrome using the following commandline on OSX `/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --disable-web-security --allow-file-access-from-files --allow-file-access --user-data-dir=~/chrome-test/ spec/runner.html`  \nOn Ubuntu try `/opt/google/chrome/google-chrome --disable-web-security --allow-file-access-from-files --allow-file-access --user-data-dir=~/chrome-test/ spec/runner.html`\n\nYou'll need to replace the consumer key and secret with your own. Once that is\ndone, you can make your authenticated 2-legged request.\n\n    \u003cscript type=\"text/javascript\"\u003e\n        oauth.get('http://oauth-sandbox.sevengoslings.net/two_legged', function (data) {\n            alert(data);\n        });\n    \u003c/script\u003e\n\nHopefully the syntax will look familier to you, if you've used any kind of javscript\nframework such as jQuery.\n\n## Node.js\nOn Node you'll need to install the XHR module with `npm install xhr`\n\n**Please let me know if jsOAuth doesn't work for you or if your application\nrequires something jsOAuth doesn't currently support. I'm always happy to hear your\nsuggestions. [feedback@bytespider.eu](mailto:feedback@bytespider.eu?subject=jsOAuth%20suggestion/feedback)**\n\nIf you like jsOAuth and want to see new features, [please donate](http://pledgie.com/campaigns/14219/).\n\n## Further reading and tutorials\n* [Example: Boilerplate for PIN based authentication in javascript](https://gist.github.com/1071227)\n* [Tutorial: Titanium \u0026 jsOAuth - Part 1](http://code.bytespider.eu/post/3032429995/twitter-client-using-titanium-and-jsoauth-part-1)\n* [Tutorial: Titanium \u0026 jsOAuth - Part 2](http://code.bytespider.eu/post/3088341182/twitter-client-using-titanium-and-jsoauth-part-2)\n* [Tutorial: OAuth and PIN based authorization in Javascript](http://log.coffeesounds.com/oauth-and-pin-based-authorization-in-javascri)\n* [Tutotial: Twitter: jsOAuth and Child Browser plugin: non-PIN OAuth access!](http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt5p1)\n* [Snippet: A simple example of PIN-based oauth flow with Twitter and jsOAuth by @funkatron](https://gist.github.com/979955)\n* [Snippet: How to upload files using jsOAuth and FormData by @lukaszkorecki](https://gist.github.com/1038408)\n\n## Applications ##\n* [Application: Mikrob.chrome by @lukaszkorecki](https://github.com/lukaszkorecki/Mikrob.chrome/blob/master/lib/oauth_request.js)\n* [Safari Extension: Shortly by Zhusee](https://github.com/ZZHC/Shortly/tree/v2.0beta1/Shortly.safariextension/oauth)\n\n## Libraries ##\n* [RequestPack](https://github.com/lukaszkorecki/RequestPack)\n\nIf you have a tutorial you think should be included here, please email me with links.\n\n## Building\n\nTo start developing, clone this repository and initialise the dependent git submodules by executing the following commands:\n\n    git submodule init\n    git submodule update\n\nTo build the entire library type `make` from the command line.\n\nTo build just the W3C compatible version, type `make jsoauth` from the command line.\nTo build just CommonJS/Node.JS compatible module type `make commonjs` from the command line.\n\nAll files are compiled into the dist directory.\n\nTo start over once you have already built a copy, type `make clean` to delete\nall built distribution files\n\n## Issues\n\nPlease report all issues on the GitHub [issue tracker for jsOauth](http://github.com/bytespider/jsOAuth/issues).\n\n## Testing ##\nTo test I use Google Chrome\n\n`/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --disable-web-security --allow-file-access-from-files --allow-file-access spec/runner.html`\n\n## Authors\n\n  * Rob Griffiths (rob AT bytespider DOT eu) [@bytespider](https://twitter.com/bytespider)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2FjsOAuth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytespider%2FjsOAuth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2FjsOAuth/lists"}