@solid/oidc-auth-manager 0.24.3 → 0.24.5
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/.github/workflows/ci.yml +59 -0
- package/package.json +9 -9
- package/src/user-store.js +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: CI
|
|
5
|
+
permissions:
|
|
6
|
+
contents: write
|
|
7
|
+
pull-requests: write
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- "**"
|
|
12
|
+
pull_request:
|
|
13
|
+
branches:
|
|
14
|
+
- "**"
|
|
15
|
+
workflow_dispatch:
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
build:
|
|
19
|
+
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
strategy:
|
|
23
|
+
matrix:
|
|
24
|
+
node-version:
|
|
25
|
+
- 18.x
|
|
26
|
+
- 20.x
|
|
27
|
+
- 22.x
|
|
28
|
+
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v5
|
|
31
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
32
|
+
uses: actions/setup-node@v6
|
|
33
|
+
with:
|
|
34
|
+
node-version: ${{ matrix.node-version }}
|
|
35
|
+
- run: npm ci
|
|
36
|
+
- run: npm run lint --if-present
|
|
37
|
+
- run: npm test
|
|
38
|
+
- run: npm run build --if-present
|
|
39
|
+
- name: Save build
|
|
40
|
+
if: matrix.node-version == '20.x'
|
|
41
|
+
uses: actions/upload-artifact@v5
|
|
42
|
+
with:
|
|
43
|
+
name: build
|
|
44
|
+
path: |
|
|
45
|
+
.
|
|
46
|
+
!node_modules
|
|
47
|
+
retention-days: 1
|
|
48
|
+
|
|
49
|
+
dependabot:
|
|
50
|
+
name: 'Dependabot'
|
|
51
|
+
needs: build # After the E2E and build jobs, if one of them fails, it won't merge the PR.
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
|
|
54
|
+
steps:
|
|
55
|
+
- name: Enable auto-merge for Dependabot PRs
|
|
56
|
+
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR
|
|
57
|
+
env:
|
|
58
|
+
PR_URL: ${{github.event.pull_request.html_url}}
|
|
59
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solid/oidc-auth-manager",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.5",
|
|
4
4
|
"description": "An OpenID Connect (OIDC) authentication manager (OP, RP and RS) for decentralized peer-to-peer authentication",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/solid/oidc-auth-manager",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@solid/oidc-op": "^0.11.
|
|
42
|
+
"@solid/oidc-op": "^0.11.7",
|
|
43
43
|
"@solid/oidc-rp": "^0.11.7",
|
|
44
|
-
"@solid/oidc-rs": "^0.5.
|
|
44
|
+
"@solid/oidc-rs": "^0.5.7",
|
|
45
45
|
"@solid/solid-multi-rp-client": "^0.6.4",
|
|
46
46
|
"ajv": "^7.2.4",
|
|
47
47
|
"bcryptjs": "^2.4.3",
|
|
48
48
|
"fs-extra": "^9.1.0",
|
|
49
49
|
"kvplus-files": "0.0.4",
|
|
50
50
|
"li": "^1.3.0",
|
|
51
|
-
"node-fetch": "^2.
|
|
52
|
-
"rdflib": "^2.
|
|
51
|
+
"node-fetch": "^2.7.0",
|
|
52
|
+
"rdflib": "^2.3.0",
|
|
53
53
|
"valid-url": "^1.0.9"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"chai": "^4.
|
|
57
|
-
"chai-as-promised": "^7.1.
|
|
56
|
+
"chai": "^4.5.0",
|
|
57
|
+
"chai-as-promised": "^7.1.2",
|
|
58
58
|
"dirty-chai": "^2.0.1",
|
|
59
59
|
"mocha": "^8.4.0",
|
|
60
|
-
"nock": "^13.
|
|
61
|
-
"node-mocks-http": "^1.
|
|
60
|
+
"nock": "^13.5.6",
|
|
61
|
+
"node-mocks-http": "^1.17.2",
|
|
62
62
|
"nyc": "^15.1.0",
|
|
63
63
|
"sinon": "^9.2.4",
|
|
64
64
|
"sinon-chai": "^3.7.0",
|
package/src/user-store.js
CHANGED
|
@@ -204,7 +204,7 @@ class UserStore {
|
|
|
204
204
|
|
|
205
205
|
deleteUser (user) {
|
|
206
206
|
const userKey = UserStore.normalizeIdKey(user.id)
|
|
207
|
-
|
|
207
|
+
let deletedEmail
|
|
208
208
|
if (user.email) {
|
|
209
209
|
const emailKey = UserStore.normalizeEmailKey(user.email)
|
|
210
210
|
deletedEmail = this.backend.del('users-by-email', emailKey)
|