From 98ae4b9c6eed4d6dcc4db6b6f5ec322f4c78a0d6 Mon Sep 17 00:00:00 2001 From: Paul Latzelsperger Date: Fri, 5 Jul 2024 07:59:01 +0200 Subject: [PATCH] move scopes into root object --- .../README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/developer/decision-records/2024-07-03-additional-catalogrequest-param/README.md b/docs/developer/decision-records/2024-07-03-additional-catalogrequest-param/README.md index 16554598d3f..be684e53259 100644 --- a/docs/developer/decision-records/2024-07-03-additional-catalogrequest-param/README.md +++ b/docs/developer/decision-records/2024-07-03-additional-catalogrequest-param/README.md @@ -23,8 +23,7 @@ constraint on them, which makes them "invisible" unless a certain credential is ## Approach -The `CatalogRequest` will receive a new field `parameters`, which is an extensible map. This map may contain an -entry `additionalScopes` which is a list of scope strings (as +The `CatalogRequest` will receive a new nullable field `additionalScopes` which is a list of scope strings (as per [DCP Specification, Section 3.1](https://github.com/eclipse-tractusx/identity-trust/blob/main/specifications/verifiable.presentation.protocol.md#31-access-scopes)): ```json @@ -36,18 +35,16 @@ per [DCP Specification, Section 3.1](https://github.com/eclipse-tractusx/identit "querySpec": { //... }, - "parameters": { - "additionalScopes": [ - "org.eclipse.edc.vc.type.AdditionalCredentialType1:read", - "org.eclipse.edc.vc.type.AdditionalCredentialType2:*" - ] - } + "additionalScopes": [ + "org.eclipse.edc.vc.type.AdditionalCredentialType1:read", + "org.eclipse.edc.vc.type.AdditionalCredentialType2:*" + ] } ``` Scope strings provided in that fashion will get added to the default scopes. -NB: both the `parameters` map and the `additionalScopes` entry are _OPTIONAL_. +NB: the `additionalScopes` entry is _OPTIONAL_. This feature will be added in an Alpha version of the Management API first, specifically of `3.1.0-alpha`. The respective URL path will be `/v3.1alpha/api/management/catalog/request` as per