From aa62927ebe8d3832d3dd63de95bddd2590ea6d6f Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 12 Aug 2020 16:28:34 +0200 Subject: [PATCH] feat: update sessionManagement feature draft version --- README.md | 4 ++-- docs/README.md | 2 +- lib/helpers/defaults.js | 2 +- lib/helpers/features.js | 6 +++--- types/index.d.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3d2e8bc8a..105c4cde9 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,9 @@ The following draft specifications are implemented by oidc-provider. - [OAuth 2.0 Pushed Authorization Requests - draft 03][par] - [OAuth 2.0 Resource Indicators - draft 08][resource-indicators] - [OAuth 2.0 Web Message Response Mode - individual draft 00][wmrm] -- [OpenID Connect Session Management 1.0 - draft 28][session-management] - [OpenID Connect Back-Channel Logout 1.0 - draft 06][backchannel-logout] - [OpenID Connect Front-Channel Logout 1.0 - draft 04][frontchannel-logout] +- [OpenID Connect Session Management 1.0 - draft 30][session-management] Updates to draft specification versions are released as MINOR library versions, if you utilize these specification implementations consider using the tilde `~` operator in your @@ -146,7 +146,7 @@ See the list of available emitted [event names](/docs/events.md) and their descr [discovery]: https://openid.net/specs/openid-connect-discovery-1_0.html [oauth2-registration]: https://tools.ietf.org/html/rfc7591 [registration]: https://openid.net/specs/openid-connect-registration-1_0.html -[session-management]: https://openid.net/specs/openid-connect-session-1_0-28.html +[session-management]: https://openid.net/specs/openid-connect-session-1_0-30.html [form-post]: https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html [oauth2]: https://tools.ietf.org/html/rfc6749 [oauth2-bearer]: https://tools.ietf.org/html/rfc6750 diff --git a/docs/README.md b/docs/README.md index 0964489c8..decada9ac 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1727,7 +1727,7 @@ _**default value**_: ### features.sessionManagement -[Session Management 1.0 - draft 28](https://openid.net/specs/openid-connect-session-1_0-28.html) +[Session Management 1.0 - draft 30](https://openid.net/specs/openid-connect-session-1_0-30.html) Enables Session Management features. Note: Browsers blocking access to cookies from a third party context hinder the reliability of this standard. diff --git a/lib/helpers/defaults.js b/lib/helpers/defaults.js index 8a52edfde..bb5b30cc4 100644 --- a/lib/helpers/defaults.js +++ b/lib/helpers/defaults.js @@ -1490,7 +1490,7 @@ function getDefaults() { /* * features.sessionManagement * - * title: [Session Management 1.0 - draft 28](https://openid.net/specs/openid-connect-session-1_0-28.html) + * title: [Session Management 1.0 - draft 30](https://openid.net/specs/openid-connect-session-1_0-30.html) * * description: Enables Session Management features. * diff --git a/lib/helpers/features.js b/lib/helpers/features.js index 9506f53da..d19c620eb 100644 --- a/lib/helpers/features.js +++ b/lib/helpers/features.js @@ -70,10 +70,10 @@ const DRAFTS = new Map(Object.entries({ version: [2, 3, 4, 5, 6, 7, 'draft-07', 'draft-08'], }, sessionManagement: { - name: 'OpenID Connect Session Management 1.0 - draft 28', + name: 'OpenID Connect Session Management 1.0 - draft 30', type: 'OIDF AB/Connect Working Group draft', - url: 'https://openid.net/specs/openid-connect-session-1_0-28.html', - version: [28, 'draft-28'], + url: 'https://openid.net/specs/openid-connect-session-1_0-30.html', + version: [28, 'draft-28', 'draft-29', 'draft-30'], }, webMessageResponseMode: { name: 'OAuth 2.0 Web Message Response Mode - draft 00', diff --git a/types/index.d.ts b/types/index.d.ts index f9eb505ce..4d4ccdd01 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -943,7 +943,7 @@ export interface Configuration { sessionManagement?: { enabled?: boolean, keepHeaders?: boolean, - ack?: 28 | 'draft-28', + ack?: 28 | 'draft-28' | 'draft-29' | 'draft-30', scriptNonce?: (ctx: KoaContextWithOIDC) => string },