From 6f0a2dabb5eebb935f93f2c2e49394aa1359106b Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Fri, 9 Apr 2021 13:46:19 +0100 Subject: [PATCH] Release 2.3.1 (#218) --- CHANGELOG.md | 7 ++++ docs/globals.html | 12 +++---- docs/index.html | 12 +++---- docs/interfaces/accesstoken.html | 10 +++--- docs/interfaces/configparams.html | 44 ++++++++++++------------ docs/interfaces/cookieconfigparams.html | 12 +++---- docs/interfaces/loginoptions.html | 4 +-- docs/interfaces/logoutoptions.html | 2 +- docs/interfaces/openidrequest.html | 2 +- docs/interfaces/openidresponse.html | 2 +- docs/interfaces/requestcontext.html | 14 ++++---- docs/interfaces/responsecontext.html | 4 +-- docs/interfaces/session.html | 10 +++--- docs/interfaces/sessionconfigparams.html | 12 +++---- docs/interfaces/sessionstore.html | 6 ++-- docs/interfaces/sessionstorepayload.html | 4 +-- package-lock.json | 2 +- package.json | 2 +- 18 files changed, 84 insertions(+), 77 deletions(-) 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 @@

attemptSilentLogin

  • @@ -2970,7 +2970,7 @@

    auth

  • @@ -3020,7 +3020,7 @@

    claimCheck

  • @@ -3077,7 +3077,7 @@

    claimEquals

  • @@ -3120,7 +3120,7 @@

    claimIncludes

  • @@ -3163,7 +3163,7 @@

    requiresAuth

  • diff --git a/docs/index.html b/docs/index.html index 715fb72d..07472384 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2940,7 +2940,7 @@

    attemptSilentLogin

  • @@ -2971,7 +2971,7 @@

    auth

  • @@ -3021,7 +3021,7 @@

    claimCheck

  • @@ -3078,7 +3078,7 @@

    claimEquals

  • @@ -3121,7 +3121,7 @@

    claimIncludes

  • @@ -3164,7 +3164,7 @@

    requiresAuth

  • diff --git a/docs/interfaces/accesstoken.html b/docs/interfaces/accesstoken.html index 8c367851..857a1201 100644 --- a/docs/interfaces/accesstoken.html +++ b/docs/interfaces/accesstoken.html @@ -2836,7 +2836,7 @@

    access_token

    access_token: string
    @@ -2851,7 +2851,7 @@

    expires_in

    expires_in: number
    @@ -2866,7 +2866,7 @@

    isExpired

    isExpired: () => boolean
    @@ -2896,7 +2896,7 @@

    token_type

    token_type: string
    @@ -2918,7 +2918,7 @@

    refresh

  • diff --git a/docs/interfaces/configparams.html b/docs/interfaces/configparams.html index b797381a..22044882 100644 --- a/docs/interfaces/configparams.html +++ b/docs/interfaces/configparams.html @@ -2912,12 +2912,12 @@

    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.

    app.use(auth({
    @@ -2974,7 +2974,7 @@ 

    Optional attemptSilentattemptSilentLogin: boolean

    @@ -2994,7 +2994,7 @@

    Optional auth0Logout

    auth0Logout: boolean
    @@ -3009,7 +3009,7 @@

    Optional authRequired

    authRequired: boolean
    @@ -3024,7 +3024,7 @@

    Optional authorizationPar
    authorizationParams: AuthorizationParameters
    @@ -3068,7 +3068,7 @@

    Optional baseURL

    baseURL: string
    @@ -3084,7 +3084,7 @@

    Optional clientAuthM
    clientAuthMethod: string
    @@ -3099,7 +3099,7 @@

    Optional clientID

    clientID: string
    @@ -3115,7 +3115,7 @@

    Optional clientSecret

    clientSecret: string
    @@ -3132,7 +3132,7 @@

    Optional clockToleranceclockTolerance: 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 @@

    Optional identityClaimidentityClaimFilter: string[]

    @@ -3261,7 +3261,7 @@

    Optional idpLogout

    idpLogout: boolean
    @@ -3276,7 +3276,7 @@

    Optional issuerBaseURLissuerBaseURL: string

    @@ -3292,7 +3292,7 @@

    Optional legacySameS
    legacySameSiteCookie: boolean
    @@ -3308,7 +3308,7 @@

    Optional routes

    routes: { callback?: string; login?: string | false; logout?: string | false; postLogoutRedirect?: string }
    @@ -3362,7 +3362,7 @@

    Optional secret

    secret: string | Array<string>
    @@ -3380,7 +3380,7 @@

    Optional session

    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 @@

    Optional domain

    domain: string
    @@ -2851,7 +2851,7 @@

    Optional httpOnly

    httpOnly: boolean
    @@ -2868,7 +2868,7 @@

    Optional path

    path: string
    @@ -2884,7 +2884,7 @@

    Optional sameSite

    sameSite: string
    @@ -2901,7 +2901,7 @@

    Optional secure

    secure: boolean
    @@ -2918,7 +2918,7 @@

    Optional transient

    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 authorizationPar
    authorizationParams: AuthorizationParameters
    @@ -2841,7 +2841,7 @@

    Optional returnTo

    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 @@

    Optional returnTo

    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

    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

    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 @@

    Optional accessToken

    accessToken: AccessToken
    @@ -2874,7 +2874,7 @@

    Optional idToken

    idToken: string
    @@ -2890,7 +2890,7 @@

    Optional idTokenClai
    idTokenClaims: IdTokenClaims
    @@ -2905,7 +2905,7 @@

    isAuthenticated

    isAuthenticated: () => boolean
    @@ -2935,7 +2935,7 @@

    Optional refreshToken

    refreshToken: string
    @@ -2951,7 +2951,7 @@

    Optional user

    user: object
    @@ -2974,7 +2974,7 @@

    fetchUserInfo

  • 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

    login: (opts?: LoginOptions) => Promise<void>
    @@ -2877,7 +2877,7 @@

    logout

    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

    access_token: string
    @@ -2857,7 +2857,7 @@

    expires_at

    expires_at: string
    @@ -2867,7 +2867,7 @@

    id_token

    id_token: string
    @@ -2882,7 +2882,7 @@

    refresh_token

    refresh_token: string
    @@ -2892,7 +2892,7 @@

    token_type

    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 @@

    Optional absoluteDuration
    absoluteDuration: boolean | number
    @@ -2860,7 +2860,7 @@

    Optional cookie

    @@ -2875,7 +2875,7 @@

    Optional name

    name: string
    @@ -2892,7 +2892,7 @@

    Optional rolling

    rolling: boolean
    @@ -2911,7 +2911,7 @@

    Optional rollingDuration<
    rollingDuration: number
    @@ -2928,7 +2928,7 @@

    Optional store

    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 @@

    destroy

  • @@ -2880,7 +2880,7 @@

    get

  • @@ -2932,7 +2932,7 @@

    set

  • 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

    data: Session
    @@ -2834,7 +2834,7 @@

    header

    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",