@node-red/editor-api 3.1.9 → 3.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/auth/index.js +4 -3
- package/package.json +4 -4
package/lib/auth/index.js
CHANGED
|
@@ -205,9 +205,10 @@ function genericStrategy(adminApp,strategy) {
|
|
|
205
205
|
passport.use(new strategy.strategy(options, verify));
|
|
206
206
|
|
|
207
207
|
adminApp.get('/auth/strategy',
|
|
208
|
-
passport.authenticate(strategy.name, {
|
|
208
|
+
passport.authenticate(strategy.name, {
|
|
209
|
+
session:false,
|
|
209
210
|
failureMessage: true,
|
|
210
|
-
failureRedirect: settings.httpAdminRoot
|
|
211
|
+
failureRedirect: settings.httpAdminRoot + '?session_message=Login Failed'
|
|
211
212
|
}),
|
|
212
213
|
completeGenerateStrategyAuth,
|
|
213
214
|
handleStrategyError
|
|
@@ -221,7 +222,7 @@ function genericStrategy(adminApp,strategy) {
|
|
|
221
222
|
passport.authenticate(strategy.name, {
|
|
222
223
|
session:false,
|
|
223
224
|
failureMessage: true,
|
|
224
|
-
failureRedirect: settings.httpAdminRoot
|
|
225
|
+
failureRedirect: settings.httpAdminRoot + '?session_message=Login Failed'
|
|
225
226
|
}),
|
|
226
227
|
completeGenerateStrategyAuth,
|
|
227
228
|
handleStrategyError
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-red/editor-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@node-red/util": "3.1.
|
|
20
|
-
"@node-red/editor-client": "3.1.
|
|
19
|
+
"@node-red/util": "3.1.11",
|
|
20
|
+
"@node-red/editor-client": "3.1.11",
|
|
21
21
|
"bcryptjs": "2.4.3",
|
|
22
22
|
"body-parser": "1.20.2",
|
|
23
23
|
"clone": "2.1.2",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"passport-http-bearer": "1.0.1",
|
|
33
33
|
"passport-oauth2-client-password": "0.1.2",
|
|
34
34
|
"passport": "0.6.0",
|
|
35
|
-
"ws": "7.5.
|
|
35
|
+
"ws": "7.5.10"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
38
|
"bcrypt": "5.1.0"
|