Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oauth2orize

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oauth2orize - npm Package Compare versions

Comparing version 1.8.1 to 1.9.0

4

lib/middleware/authorization.js

@@ -123,3 +123,3 @@ /**

function validated(err, client, redirectURI) {
function validated(err, client, redirectURI, webOrigin) {
// Set properties *before* next()'ing due to error. The presence of a

@@ -131,2 +131,3 @@ // redirectURI being provided, even under error conditions, indicates

if (redirectURI) { req.oauth2.redirectURI = redirectURI; }
if (webOrigin) { req.oauth2.webOrigin = webOrigin; }
req.oauth2.req = areq;

@@ -201,2 +202,3 @@ req.oauth2.user = req[userProperty];

txn.redirectURI = redirectURI;
txn.webOrigin = webOrigin;
txn.req = areq;

@@ -203,0 +205,0 @@ txn.info = info;

@@ -136,11 +136,11 @@ /**

Server.prototype.authorize =
Server.prototype.authorization = function(options, validate, immediate) {
return authorization(this, options, validate, immediate);
Server.prototype.authorization = function(options, validate, immediate, complete) {
return authorization(this, options, validate, immediate, complete);
};
Server.prototype.resume = function(options, immediate) {
Server.prototype.resume = function(options, immediate, complete) {
if (options && options.loadTransaction === false) {
return resume(this, options, immediate);
return resume(this, options, immediate, complete);
}
return [transactionLoader(this, options), resume(this, options, immediate)];
return [transactionLoader(this, options), resume(this, options, immediate, complete)];
};

@@ -153,7 +153,7 @@

*/
Server.prototype.decision = function(options, parse) {
Server.prototype.decision = function(options, parse, complete) {
if (options && options.loadTransaction === false) {
return decision(this, options, parse);
return decision(this, options, parse, complete);
}
return [transactionLoader(this, options), decision(this, options, parse)];
return [transactionLoader(this, options), decision(this, options, parse, complete)];
};

@@ -160,0 +160,0 @@

{
"name": "oauth2orize",
"version": "1.8.1",
"version": "1.9.0",
"description": "OAuth 2.0 authorization server toolkit for Node.js.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -186,7 +186,2 @@ # OAuth2orize

## Tests
$ npm install
$ npm test
## Debugging

@@ -196,6 +191,38 @@

## Credits
## Contributing
- [Jared Hanson](http://github.com/jaredhanson)
#### Tests
The test suite is located in the `test/` directory. All new features are
expected to have corresponding test cases. Ensure that the complete test suite
passes by executing:
```bash
$ make test
```
#### Coverage
All new feature development is expected to have test coverage. Patches that
increse test coverage are happily accepted. Coverage reports can be viewed by
executing:
```bash
$ make test-cov
$ make view-cov
```
## Support
#### Funding
This software is provided to you as open source, free of charge. The time and
effort to develop and maintain this project is dedicated by [@jaredhanson](https://github.com/jaredhanson).
If you (or your employer) benefit from this project, please consider a financial
contribution. Your contribution helps continue the efforts that produce this
and other open source software.
Funds are accepted via [PayPal](https://paypal.me/jaredhanson), [Venmo](https://venmo.com/jaredhanson),
and [other](http://jaredhanson.net/pay) methods. Any amount is appreciated.
## License

@@ -205,2 +232,2 @@

Copyright (c) 2012-2015 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
Copyright (c) 2012-2017 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc