express-openid-connect
Advanced tools
Comparing version 2.3.0-beta.0 to 2.3.0
# CHANGELOG | ||
## [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) | ||
**Added** | ||
- Custom session stores [#190](https://github.com/auth0/express-openid-connect/pull/190) ([davidpatrick](https://github.com/davidpatrick)) | ||
## [2.3.0-beta.0](https://github.com/auth0/express-openid-connect/tree/v2.3.0-beta.0) (2021-02-23) | ||
@@ -4,0 +10,0 @@ [Full Changelog](https://github.com/auth0/express-openid-connect/compare/v2.2.1...v2.3.0-beta.0) |
@@ -201,9 +201,13 @@ // Type definitions for express-openid-connect | ||
* {@link ConfigParams.issuerBaseURL issuerBaseURL}, {@link ConfigParams.baseURL baseURL}, {@link ConfigParams.clientID clientID} | ||
* and {@link ConfigParams.secret secret} are required but can be configured with environmental variables: | ||
* and {@link ConfigParams.secret secret} are required but can be configured with environmental variables. {@link ConfigParams.clientSecret clientSecret} is not required but can also be configured this way. | ||
* | ||
* ```js | ||
* # Required | ||
* ISSUER_BASE_URL=https://YOUR_DOMAIN | ||
* BASE_URL=https://YOUR_APPLICATION_ROOT_URL | ||
* CLIENT_ID=YOUR_CLIENT_ID | ||
* BASE_URL=https://YOUR_APPLICATION_ROOT_URL | ||
* SECRET=LONG_RANDOM_VALUE | ||
* | ||
* # Not required | ||
* CLIENT_SECRET=YOUR_CLIENT_SECRET | ||
* ``` | ||
@@ -238,4 +242,4 @@ */ | ||
* response_type: 'id_token', | ||
* response_mode: 'form_post, | ||
* scope: openid profile email' | ||
* response_mode: 'form_post', | ||
* scope: 'openid profile email' | ||
* } | ||
@@ -351,6 +355,6 @@ * ``` | ||
* afterCallback: async (req, res, session, decodedState) => { | ||
* const additionalUserClaims = await req.oidc.fetchUserInfo(); | ||
* const userProfile = await request(`${issuerBaseURL}/userinfo`); | ||
* return { | ||
* ...session, | ||
* ...additionalUserClaims | ||
* userProfile // access using `req.appSession.userProfile` | ||
* }; | ||
@@ -357,0 +361,0 @@ * } |
{ | ||
"name": "express-openid-connect", | ||
"version": "2.3.0-beta.0", | ||
"version": "2.3.0", | ||
"description": "Express middleware to protect web applications using OpenID Connect.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/auth0/express-openid-connect", |
@@ -73,3 +73,3 @@ # Express OpenID Connect | ||
See the [API documentation](https://auth0.github.io/express-openid-connect) for additional configuration possibilities and provided methods. | ||
See the [API documentation](https://auth0.github.io/express-openid-connect) for [additional configuration possibilities](https://auth0.github.io/express-openid-connect/interfaces/configparams.html) and [provided methods](https://auth0.github.io/express-openid-connect/globals.html#attemptsilentlogin). | ||
@@ -76,0 +76,0 @@ ## A note on error handling |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
87870
2130
0