stolsma / authpack Goto Github PK
View Code? Open in Web Editor NEWPackage of distributed client and server OAuth2 classes
License: Other
Package of distributed client and server OAuth2 classes
License: Other
more of a question. I do not completely understand the behavior if multiple response_types are requested, and what this code here does:
// Handle the different registered grant types, see 1.3/3.1.1 of OAuth2 Specs.
var rt = self.responseTypes;
for (var i=0; i < rt.length; i += 2) {
if (rt[i][0] === options.response_type) return rt[i+1](req, res, options);
}
A bit more explanation in the source would be great.
Hi there,
thanks a lot for putting a lot of effort into this. It is very helpful for me. May I suggest that you consider splitting this into multiple npms? It makes usage and contributing much easier, and often simplifies testing as well. A good example for this would be passport (passportjs.org). Perhaps one for the client side, one for the overall server, and one with the server building blocks?
Martin
You might want to change the script test in package.json from
"test": "vows ...
to
"test": "node_modules/.bin/vows
to make sure that you use the correct version and that it works with travis-ci.org (which I encourage you to use, it's free and great for nodejs)
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.