From a9364855a69da17834281a5a61ca6c1f9f60e67c Mon Sep 17 00:00:00 2001 From: Blake Mason Date: Thu, 29 Feb 2024 16:48:07 -0800 Subject: [PATCH 1/2] [B] PublicRegistration enabled & publicSchema viewable users narrowed - publicRegistration seems to be needed to allow Oauth registration - public graphql schema only needs to view educator and student groups --- .../schemas/cec04a25-43ba-4f4c-81bd-b71f48731b5a.yaml | 3 ++- api/config/project/project.yaml | 2 +- api/config/project/users/users.yaml | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/api/config/project/graphql/schemas/cec04a25-43ba-4f4c-81bd-b71f48731b5a.yaml b/api/config/project/graphql/schemas/cec04a25-43ba-4f4c-81bd-b71f48731b5a.yaml index 08f861e..914de7c 100644 --- a/api/config/project/graphql/schemas/cec04a25-43ba-4f4c-81bd-b71f48731b5a.yaml +++ b/api/config/project/graphql/schemas/cec04a25-43ba-4f4c-81bd-b71f48731b5a.yaml @@ -25,5 +25,6 @@ scope: - 'volumes.7a4c811e-eb74-4c4b-ae64-134f2a4e2c3e:read' # Datasets - 'globalsets.aee57b4f-2623-44fc-af2b-c670f6e1babe:read' # Site information - 'globalsets.0edce3a2-c596-4238-9dde-212c83d5a65f:read' # Menu Content - - 'usergroups.everyone:read' + - 'usergroups.d8be03ce-7aeb-4141-b40e-ec39ec1c796f:read' # Educators + - 'usergroups.461e1254-37f7-4aeb-81a1-3f08d2463d06:read' # Students - 'categorygroups.90aa9610-a9c9-4531-95f8-d0068046ae25:read' # Sort Options diff --git a/api/config/project/project.yaml b/api/config/project/project.yaml index 90c8ac9..34189f8 100644 --- a/api/config/project/project.yaml +++ b/api/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1708626550 +dateModified: 1709252018 elementSources: craft\elements\Entry: - diff --git a/api/config/project/users/users.yaml b/api/config/project/users/users.yaml index 56daf27..a84d7fd 100644 --- a/api/config/project/users/users.yaml +++ b/api/config/project/users/users.yaml @@ -1,6 +1,7 @@ -allowPublicRegistration: false +allowPublicRegistration: true deactivateByDefault: false -defaultGroup: null +defaultGroup: '' photoSubpath: null photoVolumeUid: null requireEmailVerification: true +validateOnPublicRegistration: false From 2c8cbc20104c82e20334fcf6fa9a8a47a18e0a7a Mon Sep 17 00:00:00 2001 From: Blake Mason Date: Mon, 4 Mar 2024 14:12:33 -0800 Subject: [PATCH 2/2] [F] Publicly registered users are Students by default --- api/config/project/project.yaml | 2 +- api/config/project/users/users.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/config/project/project.yaml b/api/config/project/project.yaml index 34189f8..d79ff8f 100644 --- a/api/config/project/project.yaml +++ b/api/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1709252018 +dateModified: 1709590312 elementSources: craft\elements\Entry: - diff --git a/api/config/project/users/users.yaml b/api/config/project/users/users.yaml index a84d7fd..a019d22 100644 --- a/api/config/project/users/users.yaml +++ b/api/config/project/users/users.yaml @@ -1,6 +1,6 @@ allowPublicRegistration: true deactivateByDefault: false -defaultGroup: '' +defaultGroup: 461e1254-37f7-4aeb-81a1-3f08d2463d06 # Students photoSubpath: null photoVolumeUid: null requireEmailVerification: true