From aa631e1add469425d42d0accabf3606fdf66bbbe Mon Sep 17 00:00:00 2001 From: Colin Beeby Date: Fri, 22 Dec 2023 15:19:08 +0000 Subject: [PATCH 1/2] Added client configuration for DLS --- Auth/LearningHub.Nhs.Auth/appsettings.json | 29 +++++++++++++++++++ .../wwwroot/images/client-logos/dls.svg | 7 +++++ 2 files changed, 36 insertions(+) create mode 100644 Auth/LearningHub.Nhs.Auth/wwwroot/images/client-logos/dls.svg diff --git a/Auth/LearningHub.Nhs.Auth/appsettings.json b/Auth/LearningHub.Nhs.Auth/appsettings.json index fbd9f12..6be8c65 100644 --- a/Auth/LearningHub.Nhs.Auth/appsettings.json +++ b/Auth/LearningHub.Nhs.Auth/appsettings.json @@ -151,6 +151,21 @@ "RequireConsent": false, "RequirePkce": true, "AllowOfflineAccess": true + }, + "digitallearningsolutions": { + "BaseUrl": "", + "ClientName": "", + "ClientSecret": "", + "AllowedGrantTypes": [ "" ], + "RedirectUris": [ "" ], + "PostLogoutUris": [ "" ], + "AllowedScopes": [ "", "", "", "", "" ], + "BackChannelLogoutSessionRequired": true, + "BackChannelLogoutUri": "", + "UpdateAccessTokenClaimsOnRefresh": true, + "RequireConsent": false, + "RequirePkce": true, + "AllowOfflineAccess": true } }, "IdsClients": { @@ -311,6 +326,20 @@ "UseSupport": false, "AllowRememberLogin": false, "LayoutPath": "/Views/Shared/LearningHub/_Layout.cshtml" + }, + "digitallearningsolutions": { + "ClientDescription": "Learning Hub", + "ClientUrl": "", + "RedirectUris": [], + "PostLogoutUris": [], + "AuthMainTitle": "Digital Learning Solutions Authentication", + "ClientLogoSrc": "/images/client-logos/dls.svg", + "ClientLogoAltText": "Digital Learning Solutions", + "ClientCssClass": "learning-hub", + "ForgottenPasswordRelativeUrl": "forgotten-password", + "RegisterAccountRelativeUrl": "register", + "SupportUrl": "https://support.e-lfh.org.uk/", + "AllowRememberLogin": false } } } diff --git a/Auth/LearningHub.Nhs.Auth/wwwroot/images/client-logos/dls.svg b/Auth/LearningHub.Nhs.Auth/wwwroot/images/client-logos/dls.svg new file mode 100644 index 0000000..a552b14 --- /dev/null +++ b/Auth/LearningHub.Nhs.Auth/wwwroot/images/client-logos/dls.svg @@ -0,0 +1,7 @@ + + + + + DLS + + \ No newline at end of file From 4d645f5329a76f9b2332dc61130b4af69045889c Mon Sep 17 00:00:00 2001 From: ColinBeebyHEE <125499287+ColinBeebyHEE@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:25:06 +0000 Subject: [PATCH 2/2] Merge pull request #12 from TechnologyEnhancedLearning/Develop/Feature/TD-3335-AddDlsClientConfig Added UserRegister false to ensure that DLS users do not get the registration option --- Auth/LearningHub.Nhs.Auth/appsettings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Auth/LearningHub.Nhs.Auth/appsettings.json b/Auth/LearningHub.Nhs.Auth/appsettings.json index 6be8c65..b37f7c6 100644 --- a/Auth/LearningHub.Nhs.Auth/appsettings.json +++ b/Auth/LearningHub.Nhs.Auth/appsettings.json @@ -339,7 +339,8 @@ "ForgottenPasswordRelativeUrl": "forgotten-password", "RegisterAccountRelativeUrl": "register", "SupportUrl": "https://support.e-lfh.org.uk/", - "AllowRememberLogin": false + "AllowRememberLogin": false, + "UseRegister": false } } }