# M2M service provision including an app

Use case 1 and its variations can be initiated by a Human Service Consumer through an app. In such case, the Machine Service Consumer acts as a proxy between the Human Service Consumer and the Service Provider's machine.

### Roles <a href="#m2mserviceprovisionincludinganapp-roles" id="m2mserviceprovisionincludinganapp-roles"></a>

<table data-header-hidden data-full-width="true"><thead><tr><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><br><br></td><td><strong>Delegation info PIP</strong></td><td></td><td></td><td></td></tr><tr><td></td><td><em>No delegation</em></td><td>Service Provider</td><td>Entitled Party</td><td>Authorization Reg</td></tr><tr><td>Use case variation</td><td><a href="">1</a></td><td>1a</td><td><a href="1b.-m2m-service-provision-with-the-ep-as-the-delegation-info-pip">1b</a></td><td><a href="1c.-m2m-service-provision-with-the-ar-as-the-delegation-info-pip">1c</a></td></tr></tbody></table>

### Depiction <a href="#m2mserviceprovisionincludinganapp-depiction" id="m2mserviceprovisionincludinganapp-depiction"></a>

#### Legal relations <a href="#m2mserviceprovisionincludinganapp-legalrelations" id="m2mserviceprovisionincludinganapp-legalrelations"></a>

<figure><img src="https://882767234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRcS8SgN2qDaia8Qpn7m9%2Fuploads%2Fgit-blob-78295b0bc782908eee1a816f74bb420831a3302a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### Use case interaction <a href="#m2mserviceprovisionincludinganapp-usecaseinteraction" id="m2mserviceprovisionincludinganapp-usecaseinteraction"></a>

<figure><img src="https://882767234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRcS8SgN2qDaia8Qpn7m9%2Fuploads%2Fgit-blob-e69feca9c099b6b41316857a31c774afc11baacc%2Fimage%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

### Description <a href="#m2mserviceprovisionincludinganapp-description" id="m2mserviceprovisionincludinganapp-description"></a>

**As to use case 1, it is prerequisite of this use case that:**

* The Service Provider has and manages its own entitlement information indicating what Entitled Parties are entitled to what (parts of) services\*;
* The Service Consumer is able to authenticate the Service Provider;
* The Service Provider is able to authenticate the Service Consumer.
* In this use case the Entitled Party is also the Service Consumer.

\*The Service Provider can outsource this function to a third party

**The use case consists of the following steps:**

* The Human Service Consumer uses an app to request a service at the Machine Service Consumer - the Human Service Consumer's identity is included in the request;
* The request is mapped to a service request;

1. The Machine Service Consumer requests a service from the Service Provider;
2. The Service Provider authenticates the Machine Service Consumer and validates the iSHARE adherence of the Service Consumer;
3. The Service Provider authorizes the Machine Service Consumer of the Service Consumer based on the entitlement information registered with the Service Provider;
4. The Service Provider executes the requested service;
5. The Service Provider provides the service result to the Machine Service Consumer;

* The Human Service Consumer accesses the result through app.


---

# 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://framework.ishare.eu/version-2.1.1/detailed-descriptions/functional/primary-use-cases/1.-m2m-service-provision/m2m-service-provision-including-an-app.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.
