> For the complete documentation index, see [llms.txt](https://digigo-nu.gitbook.io/dsgo-developer-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://digigo-nu.gitbook.io/dsgo-developer-portal/dsgo-developer-portal/guide-3.-request-participant-evidence.md).

# Guide 3. Request participant evidence

In the DSGO, it is determined before a data transaction takes place whether all organisations involved in the data transaction are participants of the DSGO. If this is the case, both parties can rely on the DSGO legal framework for the data transactions. This page explains how a party can obtain participant evidence of another party at the Participant Registry.

***

### Scenario

Organization A, in the role of Data service consumer, intends to use a data service offered by Organization B, in the role of Data service provider. Both parties can verify, prior to the data transaction, whether the other party is a participant of the DSGO. This verification ensures that the data transaction takes place under the legal contract both parties have signed with digiGO as governance body.

### Sequence diagram

The diagram below outlines the steps for obtaining `partyInfo` [object](https://afsprakenstelseldsgo.atlassian.net/wiki/spaces/dsgo/pages/1001062419/partyInfo+object) from the [`/parties`](https://afsprakenstelseldsgo.atlassian.net/wiki/spaces/dsgo/pages/976065956/parties) endpoint of the Participant Registry. Organisation A first requests an `access_token` from the Participant Registry. Organisation A [implemented a Client that can access a data service](/dsgo-developer-portal/dsgo-developer-portal/guide-2.-implement-client.md). The Participant registry handles the token request as a standard [authentication flow](/dsgo-developer-portal/dsgo-developer-portal/learn-the-basics/authentication-flow.md).

Organisation A uses the `access_token` to request `partyInfo` of Organisation B from the Participant registry. Organisation A can verify if  the `partyInfo` of Organisation B is valid. This validation can be used by Organisation A to request an `access_token` from Organisation B.

Organisation B can use the same flow to request `party_info` of Organisation A from the Participant Registry. This validation can be used by Organisation B to provide an `access_token` to Organisation A.

{% @mermaid/diagram content="---
title:
config:
showSequenceNumbers: true
theme: neutral
boxTextMargin: 10
diagramMarginY: 20
------------------

sequenceDiagram

```
box . <br/>Party A
    participant AP as App
    participant AC as Client
end

box . <br/>Participant Registry
    participant PR as Participant Registry
end

AP->>+AC: Verify Party B<br/>is participant in role

%% Data service provider requests access_token from Participant registry
AC->>+PR: POST /token
note right of PR: AS authenticates<br/>Party B according to<br/>the standard protocol
PR-->>-AC: access_token<br/>200: OK

%% Data service provider requests party_info A from participant registry
AC->>+PR: GET /parties/{id} <br/>header: access_token
PR->>PR: Validate access_token

    alt Invalid access_token
        PR-->>AC: 401: Unauthorized
    end

PR->>PR: Gather <br/>partyInfo Party B
PR-->>-AC: partyInfo Party B<br/>200: OK

%% Data service provider authorizes A
AC->>-AC: Verify Party B is <br/>participant in role
AC->>AP: Verification <br/>(un)successful
```

" %}

***

### Sandbox environment: Test Participant Registry

digiGO offers the Participant registry in a test setting. This allows you to test your implementation of the above flow.

{% hint style="info" %}
The Test Participant Registry can be used in a chain test where multiple organisations want to validate their implementations as data service consumers, data service providers, and authorization registries.
{% endhint %}

In order to use this Participant registry you can request an [iSHARE test certificate ](https://digigo-nu.gitbook.io/dsgo-developer-portal/dsgo-developer-portal/guide-1.-acquire-certificates#request-an-ishare-test-certificate),  but a valid [eIDAS certificate](https://digigo-nu.gitbook.io/dsgo-developer-portal/dsgo-developer-portal/guide-1.-acquire-certificates) can also be used.&#x20;

After successful registration you can use our Participant Registry API on our acceptance environment: [https://api.acceptance.digigo.nu](https://api.acceptance.digigo.nu/)

{% hint style="success" %}
When requesting an access token from the DSGO (test) participant registry, please use `"aud":"did:ishare:EU.NL.NTRNL-63202158"` in the payload of your client assertion JWT (the  NTRNL of digiGO).
{% endhint %}

***

## Further reading

<table><thead><tr><th width="179">Source</th><th width="344">Description</th><th width="118">Author</th><th>Language</th></tr></thead><tbody><tr><td><a href="https://afsprakenstelseldsgo.atlassian.net/wiki/spaces/dsgo/pages/976065956/parties">/parties</a></td><td>DSGO specification of the <code>/parties</code> endpoint.</td><td>digiGO</td><td>English</td></tr><tr><td><a href="https://afsprakenstelseldsgo.atlassian.net/wiki/spaces/dsgo/pages/1001062419/partyInfo+object">partyInfo</a></td><td>Definition of the <code>partyInfo</code> object.</td><td>digiGO</td><td>English</td></tr><tr><td><a href="https://api.acceptance.digigo.nu/">DSGO Participant Test Registry</a></td><td>The DSGO Participant Test Registry for testing purposes</td><td>Centraal Register Techniek</td><td>English</td></tr><tr><td><a href="https://github.com/iSHAREScheme/code-snippets">iSHARE Code snippets</a></td><td>Github repository with code snippets for implementing iSHARE functionality.</td><td>iSHARE</td><td>English</td></tr><tr><td><a href="https://dev.ishare.eu/introduction/getting-started/test-certificates">iSHARE Test certificates</a></td><td>Tutorial how to request a Test certificate from iSHARE</td><td>iSHARE</td><td>English</td></tr></tbody></table>
