diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dac3396..287963aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## [2.3.1](https://github.com/auth0/express-openid-connect/tree/v2.3.1) (2021-04-09) +[Full Changelog](https://github.com/auth0/express-openid-connect/compare/v2.3.0...v2.3.1) + +**Fixed** +- Set cookie headers on header write (before res.end) [#214](https://github.com/auth0/express-openid-connect/pull/214) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Prompt should be passed as an auth param [#217](https://github.com/auth0/express-openid-connect/pull/217) ([adamjmcgrath](https://github.com/adamjmcgrath)) + ## [2.3.0](https://github.com/auth0/express-openid-connect/tree/v2.3.0) (2021-03-10) [Full Changelog](https://github.com/auth0/express-openid-connect/compare/v2.2.1...v2.3.0) diff --git a/docs/globals.html b/docs/globals.html index c99a5298..42c4b3f7 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -2939,7 +2939,7 @@
auth
claimCheck
claimEquals
claimIncludes
requiresAuth
attemptSilentLogin
auth
claimCheck
claimEquals
claimIncludes
requiresAuth
access_token
expires_in
isExpired
token_type
refresh
Optional afterCallbackafterCallback: (req: OpenidRequest, res: OpenidResponse, session: Session, decodedState: {}) => Promise<Session> | Session
Function for custom callback handling after receiving tokens and before redirecting +
Function for custom callback handling after receiving and validating the ID Token and before redirecting. This can be used for handling token storage, making userinfo calls, claim validation, etc.
Optional auth0Logout
Optional authRequired
authOptional authorizationPar
authorizationParams: AuthorizationParameters
@@ -3068,7 +3068,7 @@ baseURL: string
@@ -3084,7 +3084,7 @@
Optional baseURL
Optional clientAuthM
clientAuthMethod: string
@@ -3099,7 +3099,7 @@ clientID: string
@@ -3115,7 +3115,7 @@ Secret: string
@@ -3132,7 +3132,7 @@
Optional clientID
Optional clientSecret
clientOptional clockTolerance
clockTolerance: number
@@ -3148,7 +3148,7 @@
Optional enableTelemetry<
enableTelemetry: boolean
@@ -3164,7 +3164,7 @@
Optional errorOnRequired<
errorOnRequiredAuth: boolean
@@ -3180,7 +3180,7 @@
Optional getLoginSta
getLoginState: (req: OpenidRequest, options: LoginOptions) => object
@@ -3230,7 +3230,7 @@
Optional idTokenSign
idTokenSigningAlg: string
@@ -3245,7 +3245,7 @@
@@ -3261,7 +3261,7 @@ idpLogout: boolean
@@ -3276,7 +3276,7 @@
@@ -3292,7 +3292,7 @@
Optional identityClaimidentityClaimFilter: string[]
Optional idpLogout
Optional issuerBaseURLissuerBaseURL: string
Optional legacySameS
legacySameSiteCookie: boolean
@@ -3308,7 +3308,7 @@ routes: { callback?: string; login?: string | false; logout?: string | false; postLogoutRedirect?: string }
@@ -3362,7 +3362,7 @@ secret: string | Array<string>
@@ -3380,7 +3380,7 @@ session: SessionConfigParams
diff --git a/docs/interfaces/cookieconfigparams.html b/docs/interfaces/cookieconfigparams.html
index cb32dd98..cf79f156 100644
--- a/docs/interfaces/cookieconfigparams.html
+++ b/docs/interfaces/cookieconfigparams.html
@@ -2835,7 +2835,7 @@ domain: string
@@ -2851,7 +2851,7 @@ httpOnly: boolean
@@ -2868,7 +2868,7 @@ path: string
@@ -2884,7 +2884,7 @@ sameSite: string
@@ -2901,7 +2901,7 @@ secure: boolean
@@ -2918,7 +2918,7 @@ transient: boolean
diff --git a/docs/interfaces/loginoptions.html b/docs/interfaces/loginoptions.html
index 9ed0efcb..8ec1612c 100644
--- a/docs/interfaces/loginoptions.html
+++ b/docs/interfaces/loginoptions.html
@@ -2826,7 +2826,7 @@
Optional routes
Optional secret
Optional session
Optional domain
Optional httpOnly
Optional path
Optional sameSite
Optional secure
Optional transient
Optional authorizationPar
authorizationParams: AuthorizationParameters
@@ -2841,7 +2841,7 @@ returnTo: string
diff --git a/docs/interfaces/logoutoptions.html b/docs/interfaces/logoutoptions.html
index c53de25d..7e9aa71e 100644
--- a/docs/interfaces/logoutoptions.html
+++ b/docs/interfaces/logoutoptions.html
@@ -2822,7 +2822,7 @@ returnTo: string
diff --git a/docs/interfaces/openidrequest.html b/docs/interfaces/openidrequest.html
index 7824250d..d6a328a2 100644
--- a/docs/interfaces/openidrequest.html
+++ b/docs/interfaces/openidrequest.html
@@ -3492,7 +3492,7 @@ oidc: RequestContext
diff --git a/docs/interfaces/openidresponse.html b/docs/interfaces/openidresponse.html
index 23bdd578..4284a4bc 100644
--- a/docs/interfaces/openidresponse.html
+++ b/docs/interfaces/openidresponse.html
@@ -3378,7 +3378,7 @@ oidc: ResponseContext
diff --git a/docs/interfaces/requestcontext.html b/docs/interfaces/requestcontext.html
index da6f3f9a..27c11d83 100644
--- a/docs/interfaces/requestcontext.html
+++ b/docs/interfaces/requestcontext.html
@@ -2858,7 +2858,7 @@ accessToken: AccessToken
@@ -2874,7 +2874,7 @@ idToken: string
@@ -2890,7 +2890,7 @@
Optional returnTo
Optional returnTo
oidc
oidc
Optional accessToken
Optional idToken
Optional idTokenClai
idTokenClaims: IdTokenClaims
@@ -2905,7 +2905,7 @@ isAuthenticated: () => boolean
@@ -2935,7 +2935,7 @@ Token: string
@@ -2951,7 +2951,7 @@ user: object
@@ -2974,7 +2974,7 @@
diff --git a/docs/interfaces/responsecontext.html b/docs/interfaces/responsecontext.html
index 579ac7a4..15b1896b 100644
--- a/docs/interfaces/responsecontext.html
+++ b/docs/interfaces/responsecontext.html
@@ -2832,7 +2832,7 @@ login: (opts?: LoginOptions) => Promise<void>
@@ -2877,7 +2877,7 @@ logout: (opts?: LogoutOptions) => Promise<void>
diff --git a/docs/interfaces/session.html b/docs/interfaces/session.html
index d66f5608..cb8011fa 100644
--- a/docs/interfaces/session.html
+++ b/docs/interfaces/session.html
@@ -2847,7 +2847,7 @@ access_token: string
@@ -2857,7 +2857,7 @@ expires_at: string
@@ -2867,7 +2867,7 @@ id_token: string
@@ -2882,7 +2882,7 @@ refresh_token: string
@@ -2892,7 +2892,7 @@ token_type: string
diff --git a/docs/interfaces/sessionconfigparams.html b/docs/interfaces/sessionconfigparams.html
index b942348f..1964fb8c 100644
--- a/docs/interfaces/sessionconfigparams.html
+++ b/docs/interfaces/sessionconfigparams.html
@@ -2842,7 +2842,7 @@
isAuthenticated
Optional refreshToken
refreshOptional user
fetchUserInfo
login
logout
access_token
expires_at
id_token
refresh_token
token_type
Optional absoluteDuration
absoluteDuration: boolean | number
@@ -2860,7 +2860,7 @@ cookie: CookieConfigParams
@@ -2875,7 +2875,7 @@ name: string
@@ -2892,7 +2892,7 @@ rolling: boolean
@@ -2911,7 +2911,7 @@
Optional cookie
Optional name
Optional rolling
Optional rollingDuration<
rollingDuration: number
@@ -2928,7 +2928,7 @@ store: SessionStore
diff --git a/docs/interfaces/sessionstore.html b/docs/interfaces/sessionstore.html
index 84543c51..f518bd05 100644
--- a/docs/interfaces/sessionstore.html
+++ b/docs/interfaces/sessionstore.html
@@ -2831,7 +2831,7 @@
@@ -2880,7 +2880,7 @@
@@ -2932,7 +2932,7 @@
diff --git a/docs/interfaces/sessionstorepayload.html b/docs/interfaces/sessionstorepayload.html
index 23058d52..323285a4 100644
--- a/docs/interfaces/sessionstorepayload.html
+++ b/docs/interfaces/sessionstorepayload.html
@@ -2819,7 +2819,7 @@ data: Session
@@ -2834,7 +2834,7 @@ header: { exp: number; iat: number; uat: number }
diff --git a/package-lock.json b/package-lock.json
index b6ba4e38..a51240b7 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "express-openid-connect",
- "version": "2.3.0",
+ "version": "2.3.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 8f658d35..0847ce83 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "express-openid-connect",
- "version": "2.3.0",
+ "version": "2.3.1",
"description": "Express middleware to protect web applications using OpenID Connect.",
"homepage": "https://github.com/auth0/express-openid-connect",
"license": "MIT",
Optional store
destroy
get
set
data
header