passport-oauth2
Advanced tools
Comparing version 1.6.1 to 1.7.0
@@ -7,2 +7,10 @@ # Changelog | ||
## [Unreleased] | ||
## [1.7.0] - 2023-03-02 | ||
### Added | ||
- Support for authorization response parameters encoded as HTML form values, as | ||
specified by [OAuth 2.0 Form Post Response Mode](https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html). | ||
## [1.6.1] - 2021-09-24 | ||
@@ -21,1 +29,4 @@ ### Fixed | ||
- `callbackURL` property added to metadata passed to state store. | ||
[Unreleased]: https://github.com/jaredhanson/passport-oauth2/compare/v1.7.0...HEAD | ||
[1.7.0]: https://github.com/authnomicon/federated/compare/v1.6.1...v1.7.0 |
@@ -159,3 +159,3 @@ // Load modules. | ||
if (req.query && req.query.code) { | ||
if ((req.query && req.query.code) || (req.body && req.body.code)) { | ||
function loaded(err, ok, state) { | ||
@@ -167,3 +167,3 @@ if (err) { return self.error(err); } | ||
var code = req.query.code; | ||
var code = (req.query && req.query.code) || (req.body && req.body.code); | ||
@@ -218,3 +218,3 @@ var params = self.tokenParams(options); | ||
var state = req.query.state; | ||
var state = (req.query && req.query.state) || (req.body && req.body.state); | ||
try { | ||
@@ -221,0 +221,0 @@ var arity = this._stateStore.verify.length; |
{ | ||
"name": "passport-oauth2", | ||
"version": "1.6.1", | ||
"version": "1.7.0", | ||
"description": "OAuth 2.0 authentication strategy for Passport.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# passport-oauth2 | ||
General-purpose OAuth 2.0 authentication strategy for [Passport](http://passportjs.org/). | ||
General-purpose OAuth 2.0 authentication strategy for [Passport](https://www.passportjs.org/). | ||
This module lets you authenticate using OAuth 2.0 in your Node.js applications. | ||
By plugging into Passport, OAuth 2.0 authentication can be easily and | ||
By plugging into Passport, OAuth 2.0-based sign in can be easily and | ||
unobtrusively integrated into any application or framework that supports | ||
[Connect](http://www.senchalabs.org/connect/)-style middleware, including | ||
[Express](http://expressjs.com/). | ||
[Connect](https://github.com/senchalabs/connect#readme)-style middleware, including | ||
[Express](https://expressjs.com/). | ||
@@ -22,2 +22,9 @@ Note that this strategy provides generic OAuth 2.0 support. In many cases, a | ||
<div align="center"> | ||
:brain: [Understanding OAuth 2.0](https://www.passportjs.org/concepts/oauth2/?utm_source=github&utm_medium=referral&utm_campaign=passport-oauth2&utm_content=nav-concept) • | ||
:heart: [Sponsors](https://www.passportjs.org/sponsors/?utm_source=github&utm_medium=referral&utm_campaign=passport-oauth2&utm_content=nav-sponsors) | ||
</div> | ||
--- | ||
@@ -24,0 +31,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36285
130