Skip to content

Commit

Permalink
Added due diligence product (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
erlendoksvoll authored May 16, 2023
1 parent b5491f2 commit 2d1ad06
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dan.Core/Services/ServiceContextService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,22 @@ public async Task<List<ServiceContext>> GetRegisteredServiceContexts()
}
}
},
new ServiceContext()
{
Name = "eDueDiligence",
Id = "duediligence-product",
ValidLanguages = new List<string>() {Constants.LANGUAGE_CODE_NORWEGIAN_NB },
AuthorizationRequirements = new List<Requirement>() {
new MaskinportenScopeRequirement()
{
RequiredScopes = new List<string>() { "altinn:dataaltinnno/duediligence" }
},
new AccreditationPartyRequirement()
{
PartyRequirements = new List<AccreditationPartyRequirementType>() { AccreditationPartyRequirementType.RequestorAndOwnerAreEqual }
}
}
},
};

return await Task.FromResult(serviceContexts);
Expand Down

0 comments on commit 2d1ad06

Please sign in to comment.