Skip to content

Commit 2d1ad06

Browse files
Added due diligence product (#58)
1 parent b5491f2 commit 2d1ad06

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Dan.Core/Services/ServiceContextService.cs

+16
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,22 @@ public async Task<List<ServiceContext>> GetRegisteredServiceContexts()
207207
}
208208
}
209209
},
210+
new ServiceContext()
211+
{
212+
Name = "eDueDiligence",
213+
Id = "duediligence-product",
214+
ValidLanguages = new List<string>() {Constants.LANGUAGE_CODE_NORWEGIAN_NB },
215+
AuthorizationRequirements = new List<Requirement>() {
216+
new MaskinportenScopeRequirement()
217+
{
218+
RequiredScopes = new List<string>() { "altinn:dataaltinnno/duediligence" }
219+
},
220+
new AccreditationPartyRequirement()
221+
{
222+
PartyRequirements = new List<AccreditationPartyRequirementType>() { AccreditationPartyRequirementType.RequestorAndOwnerAreEqual }
223+
}
224+
}
225+
},
210226
};
211227

212228
return await Task.FromResult(serviceContexts);

0 commit comments

Comments
 (0)