express-openid-connect
Advanced tools
Comparing version 2.13.0 to 2.14.0
// Type definitions for express-openid-connect | ||
import type { Agent as HttpAgent } from 'http'; | ||
import type { Agent as HttpsAgent } from 'https'; | ||
import { | ||
@@ -504,3 +506,3 @@ AuthorizationParameters, | ||
*/ | ||
callback?: string; | ||
callback?: string | false; | ||
}; | ||
@@ -595,2 +597,18 @@ | ||
/** | ||
* Specify an Agent or Agents to pass to the underlying http client https://github.com/sindresorhus/got/ | ||
* | ||
* An object representing `http`, `https` and `http2` keys for [`http.Agent`](https://nodejs.org/api/http.html#http_class_http_agent), | ||
* [`https.Agent`](https://nodejs.org/api/https.html#https_class_https_agent) and [`http2wrapper.Agent`](https://github.com/szmarczak/http2-wrapper#new-http2agentoptions) instance. | ||
* | ||
* See https://github.com/sindresorhus/got/blob/v11.8.6/readme.md#agent | ||
* | ||
* For a proxy agent see https://www.npmjs.com/package/proxy-agent | ||
*/ | ||
httpAgent?: { | ||
http?: HttpAgent | false; | ||
https?: HttpsAgent | false; | ||
http2?: unknown | false; | ||
}; | ||
/** | ||
* Optional User-Agent header value for oidc client requests. Default is `express-openid-connect/{version}`. | ||
@@ -776,2 +794,3 @@ */ | ||
* Defaults to "Lax" but will be adjusted based on {@link AuthorizationParameters.response_type}. | ||
* When setting to 'None' (uncommon), you should implement CSRF protection on your own routes | ||
*/ | ||
@@ -778,0 +797,0 @@ sameSite?: string; |
@@ -34,2 +34,3 @@ const { Issuer, custom } = require('openid-client'); | ||
options.timeout = config.httpTimeout; | ||
options.agent = config.httpAgent; | ||
return options; | ||
@@ -36,0 +37,0 @@ }; |
@@ -264,2 +264,3 @@ const Joi = require('joi'); | ||
httpUserAgent: Joi.string().optional(), | ||
httpAgent: Joi.object().optional(), | ||
}); | ||
@@ -266,0 +267,0 @@ |
{ | ||
"name": "express-openid-connect", | ||
"version": "2.13.0", | ||
"version": "2.14.0", | ||
"description": "Express middleware to protect web applications using OpenID Connect.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/auth0/express-openid-connect", |
93335
2593