chbrown / autoauth Goto Github PK
View Code? Open in Web Editor NEWAutomatic OAuth token generation from basic user account credentials
Automatic OAuth token generation from basic user account credentials
Cool module!
Few Questions:
(1) Why not write the phantomjs script such that a user provides username/password as arguments on command line and then doesn't even have to visit the signup page? Is it because that would violate some legal pretext for linkedin/flicker etc?
(2) I want to remove all friction for those who want to use my module - https://github.com/ShoppinPal/vend-tools ... but part of that is simplifying the process to get their accessToken to a point where all they do is type vend-tools setup -u username -p password
and then underneath phantomjs gets everything wrapped up nice & neat and persists an oauth.json file for reuse when other commands run. Is this a pipe dream or something I can accomplish by referring to your codebase or maybe reusing your module?
(3) I read through this: http://blog.oauth.io/casperjs-automated-testing-oauth-flow/ but the coffeescript threw me off.
(4) Perhaps these questions weren't "issue" worthy ... would you mind opening a public chat room linked to this repo on https://gitter.im? Like https://gitter.im/chbrown/autoauth ... it will be free since your project is public and issues won't get cluttered by questions ... plus the community that uses your code can also answer Qs. Also its all the rage these days :P
Seems like I am just running this in the wrong folder, but I can't get the auth.js to run
sudo node auth.js --provider flickr --appkey **** --appsecret **** --username **** --password ****
returns:
throw err;
^
Error: Cannot find module '/auth.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3````
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.