# Appendix 3. Practical Examples

## Get Data linked to Connected Users

* No specification for url syntax
* Requests have to fill Authorization Header with JWT OIDC Token obtained thanks to login.lescommuns.org application.
* Basic authentification
  * Server has to validate token thanks to signature and parse token to obtain preferred\_username.
  * This preferred\_username can be linked to the Platform User. To link OIDC User and Platform User, platforms can add OIDC authentification feature.
* Outdated Token
  * If token is outdated, platforms can refuse request.
  * If platforms have to request another (DFC or Other) and receive outaded input token, Platforms can remember refresh token (when OIDC authentication features execution) and ask new access with a specific request.

### Get examples from all format versions

As we developed the DFC Standard aside the DFC Prototype, we had to tweak the data format with the standard evolution.

* [version 1.5](https://datafoodconsortium.gitbook.io/dfc-standard-documentation/appendixes/practical-examples/version-1-5)
* [version 1.3](https://datafoodconsortium.gitbook.io/dfc-standard-documentation/appendixes/practical-examples/version-1-3)
* [version 1.2](https://datafoodconsortium.gitbook.io/dfc-standard-documentation/appendixes/practical-examples/version-1-2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dfc-standard.org/dfc-standard-documentation/appendixes/practical-examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
