openid-client
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [4.2.0](https://github.com/panva/node-openid-client/compare/v4.1.1...v4.2.0) (2020-10-03) | ||
### Features | ||
* add callback extras to strategy options ([#295](https://github.com/panva/node-openid-client/issues/295)) ([b77466d](https://github.com/panva/node-openid-client/commit/b77466ddb597accdb783bad07566f28db0d2c827)) | ||
## [4.1.1](https://github.com/panva/node-openid-client/compare/v4.1.0...v4.1.1) (2020-09-14) | ||
@@ -7,0 +14,0 @@ |
@@ -1060,3 +1060,3 @@ /* eslint-disable max-classes-per-file */ | ||
if (options.method !== 'GET' && options.method !== 'POST') { | ||
throw new TypeError('#userinfo() verb can only be POST or a GET'); | ||
throw new TypeError('#userinfo() method can only be POST or a GET'); | ||
} | ||
@@ -1063,0 +1063,0 @@ |
@@ -33,2 +33,3 @@ /* eslint-disable no-underscore-dangle */ | ||
usePKCE, | ||
extras = {}, | ||
} = {}, verify) { | ||
@@ -54,2 +55,3 @@ if (!(client instanceof BaseClient)) { | ||
this._params = cloneDeep(params); | ||
this._extras = cloneDeep(extras); | ||
@@ -152,3 +154,3 @@ if (!this._params.response_type) this._params.response_type = resolveResponseType.call(client); | ||
const tokenset = await client.callback(opts.redirect_uri, reqParams, checks); | ||
const tokenset = await client.callback(opts.redirect_uri, reqParams, checks, this._extras); | ||
@@ -155,0 +157,0 @@ const passReq = this._passReqToCallback; |
{ | ||
"name": "openid-client", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -66,3 +66,3 @@ # openid-client | ||
[<img width="65" height="65" align="left" src="https://avatars.githubusercontent.com/u/2824157?s=75&v=4" alt="auth0-logo">][sponsor-auth0] If you want to quickly add OpenID Connect authentication to Node.js apps, feel free to check out Auth0's Node.js SDK and free plan at [auth0.com/overview][sponsor-auth0].<br><br> | ||
[<img width="65" height="65" align="left" src="https://avatars.githubusercontent.com/u/2824157?s=75&v=4" alt="auth0-logo">][sponsor-auth0] If you want to quickly add OpenID Connect authentication to Node.js apps, feel free to check out Auth0's Node.js SDK and free plan at [auth0.com/developers][sponsor-auth0].<br><br> | ||
@@ -313,3 +313,3 @@ ## Support | ||
[npm-url]: https://www.npmjs.com/package/openid-client | ||
[sponsor-auth0]: https://auth0.com/overview?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=openid-client&utm_content=auth | ||
[sponsor-auth0]: https://auth0.com/developers?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=openid-client&utm_content=auth | ||
[support-sponsor]: https://github.com/sponsors/panva | ||
@@ -316,0 +316,0 @@ [documentation]: https://github.com/panva/node-openid-client/blob/master/docs/README.md |
@@ -678,3 +678,8 @@ /// <reference types="node" /> | ||
params?: AuthorizationParameters; | ||
/** | ||
* "extras" argument value passed to the client.callback() call. | ||
*/ | ||
extras?: CallbackExtras; | ||
/** | ||
* Boolean specifying whether the verify function should get the request object as first argument instead. | ||
@@ -681,0 +686,0 @@ * Default: 'false' |
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
171013
3229