Skip to content

Commit 0657025

Browse files
authored
Merge pull request #49 from TechnologyEnhancedLearning/Develop/Fearure/TD-3737-DigitalStaffPassport
Added userprofileclient config and learningcredentialsapi scope
2 parents 1001b12 + 4fd4bb2 commit 0657025

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Auth/LearningHub.Nhs.Auth/Configuration/LearningHubResourceStore.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ public LearningHubResourceStore()
2626
{
2727
new ApiResource("learninghubapi", "Learning Hub API") { Scopes = new List<string> { "learninghubapi", }, },
2828
new ApiResource("userapi", "User API") { Scopes = new List<string> { "userapi" } },
29+
new ApiResource("learningcredentialsapi", "Learning Credentials API") { Scopes = new List<string> { "learningcredentialsapi" } },
2930
};
3031

3132
this.apiScopes = new[]
3233
{
3334
new ApiScope("learninghubapi", "Access Learning Hub API"),
3435
new ApiScope("userapi", "Access User API"),
36+
new ApiScope("learningcredentialsapi", "Learning Credentials API"),
3537
};
3638

3739
this.identityResources = new[]

Auth/LearningHub.Nhs.Auth/appsettings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,21 @@
137137
"RequirePkce": false,
138138
"AllowOfflineAccess": false
139139
},
140+
"userprofileclient": {
141+
"BaseUrl": "",
142+
"ClientName": "",
143+
"ClientSecret": "",
144+
"AllowedGrantTypes": [ "" ],
145+
"RedirectUris": [ "" ],
146+
"PostLogoutUris": [ "" ],
147+
"AllowedScopes": [ "", "", "", "", "", "" ],
148+
"BackChannelLogoutSessionRequired": true,
149+
"BackChannelLogoutUri": "",
150+
"UpdateAccessTokenClaimsOnRefresh": true,
151+
"RequireConsent": false,
152+
"RequirePkce": true,
153+
"AllowOfflineAccess": true
154+
},
140155
"learninghubopenapi": {
141156
"BaseUrl": "",
142157
"ClientName": "",

0 commit comments

Comments
 (0)