From 4fd4bb2e6aa1c5b4328d4873482db45827e9cb02 Mon Sep 17 00:00:00 2001 From: Colin Beeby Date: Tue, 23 Jul 2024 14:38:00 +0100 Subject: [PATCH] Added userprofileclient config and learningcredentialsapi scope --- .../Configuration/LearningHubResourceStore.cs | 2 ++ Auth/LearningHub.Nhs.Auth/appsettings.json | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/Auth/LearningHub.Nhs.Auth/Configuration/LearningHubResourceStore.cs b/Auth/LearningHub.Nhs.Auth/Configuration/LearningHubResourceStore.cs index 2e783f0..4e34ea4 100644 --- a/Auth/LearningHub.Nhs.Auth/Configuration/LearningHubResourceStore.cs +++ b/Auth/LearningHub.Nhs.Auth/Configuration/LearningHubResourceStore.cs @@ -26,12 +26,14 @@ public LearningHubResourceStore() { new ApiResource("learninghubapi", "Learning Hub API") { Scopes = new List { "learninghubapi", }, }, new ApiResource("userapi", "User API") { Scopes = new List { "userapi" } }, + new ApiResource("learningcredentialsapi", "Learning Credentials API") { Scopes = new List { "learningcredentialsapi" } }, }; this.apiScopes = new[] { new ApiScope("learninghubapi", "Access Learning Hub API"), new ApiScope("userapi", "Access User API"), + new ApiScope("learningcredentialsapi", "Learning Credentials API"), }; this.identityResources = new[] diff --git a/Auth/LearningHub.Nhs.Auth/appsettings.json b/Auth/LearningHub.Nhs.Auth/appsettings.json index b37f7c6..1565fa4 100644 --- a/Auth/LearningHub.Nhs.Auth/appsettings.json +++ b/Auth/LearningHub.Nhs.Auth/appsettings.json @@ -137,6 +137,21 @@ "RequirePkce": false, "AllowOfflineAccess": false }, + "userprofileclient": { + "BaseUrl": "", + "ClientName": "", + "ClientSecret": "", + "AllowedGrantTypes": [ "" ], + "RedirectUris": [ "" ], + "PostLogoutUris": [ "" ], + "AllowedScopes": [ "", "", "", "", "", "" ], + "BackChannelLogoutSessionRequired": true, + "BackChannelLogoutUri": "", + "UpdateAccessTokenClaimsOnRefresh": true, + "RequireConsent": false, + "RequirePkce": true, + "AllowOfflineAccess": true + }, "learninghubopenapi": { "BaseUrl": "", "ClientName": "",