ep_openid_connect 2.5.11 → 2.5.12
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/.eslintrc.cjs +9 -0
- package/index.js +1 -2
- package/package.json +5 -15
package/.eslintrc.cjs
ADDED
package/index.js
CHANGED
|
@@ -251,8 +251,7 @@ exports.handleMessage = async (hookName, {message, socket}) => {
|
|
|
251
251
|
if (!displayname) return;
|
|
252
252
|
if (message.type === 'CLIENT_READY') {
|
|
253
253
|
logger.debug(
|
|
254
|
-
`CLIENT_READY ${socket.id}: Setting username for token ${message.token} to ${displayname}`
|
|
255
|
-
);
|
|
254
|
+
`CLIENT_READY ${socket.id}: Setting username for token ${message.token} to ${displayname}`);
|
|
256
255
|
// TODO: author ID might come from session ID, not token.
|
|
257
256
|
const authorId = await authorManager.getAuthor4Token(message.token);
|
|
258
257
|
await authorManager.setAuthorName(authorId, displayname);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep_openid_connect",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.12",
|
|
4
4
|
"description": "Etherpad plugin to authenticate users against an OpenID Connect provider.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -26,21 +26,11 @@
|
|
|
26
26
|
"openid-client": "^5.1.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"eslint": "^8.
|
|
30
|
-
"eslint-config-etherpad": "^
|
|
31
|
-
"eslint-plugin-cypress": "^2.12.1",
|
|
32
|
-
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
33
|
-
"eslint-plugin-mocha": "^10.0.3",
|
|
34
|
-
"eslint-plugin-node": "^11.1.0",
|
|
35
|
-
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
36
|
-
"eslint-plugin-promise": "^6.0.0",
|
|
37
|
-
"eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0",
|
|
29
|
+
"eslint": "^8.9.0",
|
|
30
|
+
"eslint-config-etherpad": "^3.0.1",
|
|
38
31
|
"oidc-provider": "^7.10.6",
|
|
39
|
-
"supertest": "^6.2.2"
|
|
40
|
-
|
|
41
|
-
"eslintConfig": {
|
|
42
|
-
"root": true,
|
|
43
|
-
"extends": "etherpad/plugin"
|
|
32
|
+
"supertest": "^6.2.2",
|
|
33
|
+
"typescript": "^4.5.5"
|
|
44
34
|
},
|
|
45
35
|
"scripts": {
|
|
46
36
|
"lint": "eslint .",
|