Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use group1 as the example group for dummy data. #376

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/backend/services/keycloak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Also a realm called `facility` is created with the following user and group:

| Username | Password | Group |
| --------- | -------- | ----- |
| oidc-user | password | aGroup|
| oidc-user | password | group1|

The users' groups are passed to SciCat backend via the OIDC ID Token, in the claim named `accessGroups` (an array of strings).
The name of the claim can be configured either in [login-callbacks.js](../v3/config/login-callbacks.js) for v3 or with [environment variables](../v4/config/.oidc.env) for v4.
6 changes: 3 additions & 3 deletions services/backend/services/keycloak/config/facility-realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@
},
"groups" : [ {
"id" : "397a50f3-8f47-4d05-8bbc-054e8160bb26",
"name" : "aGroup",
"path" : "/aGroup",
"name" : "group1",
"path" : "/group1",
"subGroups" : [ ],
"attributes" : { },
"realmRoles" : [ ],
Expand Down Expand Up @@ -406,7 +406,7 @@
"requiredActions" : [ ],
"realmRoles" : [ "default-roles-facility" ],
"notBefore" : 0,
"groups" : [ "/aGroup" ]
"groups" : [ "/group1" ]
} ],
"scopeMappings" : [ {
"clientScope" : "offline_access",
Expand Down
38 changes: 19 additions & 19 deletions services/mongodb/config/seed/Dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -86,7 +86,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -151,7 +151,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -216,7 +216,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -274,7 +274,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -332,7 +332,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -390,7 +390,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -448,7 +448,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -506,7 +506,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -585,7 +585,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -664,7 +664,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -742,7 +742,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -800,7 +800,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -855,7 +855,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -913,7 +913,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -969,7 +969,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -1027,7 +1027,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -1085,7 +1085,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down Expand Up @@ -1141,7 +1141,7 @@
"license": "",
"version": "3.1.0",
"isPublished": true,
"ownerGroup": "aGroup",
"ownerGroup": "group1",
"accessGroups": [],
"createdBy": "ingestor",
"history": [],
Expand Down
Loading