From 739038d93c28dfd13fc912de1c544f3c927f1bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rune=20T=C3=B8mmer=C3=A5s=20Larsen?= Date: Tue, 27 Feb 2024 09:05:58 +0100 Subject: [PATCH] doc updates (#1426) * doc updates * updates link --- content/authorization/modules/pdp/_index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/authorization/modules/pdp/_index.md b/content/authorization/modules/pdp/_index.md index 1bc46fa501d..d985d2e108a 100644 --- a/content/authorization/modules/pdp/_index.md +++ b/content/authorization/modules/pdp/_index.md @@ -23,15 +23,19 @@ the instance workflow state and the reporteId for the existing resource. For request for non existing instances the appId will be used and the reportee is a required input. - ## API The PDP component exposes a XACML 3.0 Json API to allow PDP checks. This API supports JSON formatet request. -Documentation for this API is found [here](http://localhost:1313/nb/api/authorization/spec/#/Decision/post_authorize) +Documentation for this API is found [here](/api/authorization/spec/) It is required to have access to a scope altinn:authorization:pdp and a API key for this access. Contact Altinn to get this. +### Example requests from Unit Tests + +- [Example with ssn performing read on ttd-externalpdp-resource1 for orgno](https://github.com/Altinn/altinn-authorization/blob/main/test/IntegrationTests/Data/Xacml/3.0/ResourceRegistry/AltinnResourceRegistry0005Request.json) +- [Example with ssn performing read on ttd-externalpdp-resource1 for ssn](https://github.com/Altinn/altinn-authorization/blob/main/test/IntegrationTests/Data/Xacml/3.0/ResourceRegistry/AltinnResourceRegistry0006Request.json) + ## XACML 3.0 Conformance