# 2. H2M service provision with identity info at the SP

In use case 2, a service is provided by the Service Provider to the Human Service Consumer. Identity info is held at the Service Provider.

### Roles <a href="#id-2.h2mserviceprovisionwithidentityinfoatthesp-roles" id="id-2.h2mserviceprovisionwithidentityinfoatthesp-roles"></a>

<table data-header-hidden data-full-width="true"><thead><tr><th width="177"></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><br><br></td><td></td><td><strong>Delegation info PIP</strong></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td><em>No delegation</em></td><td>Service Provider</td><td>Entitled Party</td><td>Authorization Reg</td></tr><tr><td><strong>Auth info PIP</strong></td><td>Service Provider</td><td>2. H2M service provision with identity info at the SP</td><td>2a</td><td>2b</td><td>2c</td></tr></tbody></table>

As no delegation takes place, the legal entity fulfilling the Entitled Party-role also fulfils the Service Consumer-role.

### Depiction <a href="#id-2.h2mserviceprovisionwithidentityinfoatthesp-depiction" id="id-2.h2mserviceprovisionwithidentityinfoatthesp-depiction"></a>

#### Legal relations <a href="#id-2.h2mserviceprovisionwithidentityinfoatthesp-legalrelations" id="id-2.h2mserviceprovisionwithidentityinfoatthesp-legalrelations"></a>

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

#### Prerequisite registration & Use case interaction <a href="#id-2.h2mserviceprovisionwithidentityinfoatthesp-prerequisiteregistration-and-usecaseinteraction" id="id-2.h2mserviceprovisionwithidentityinfoatthesp-prerequisiteregistration-and-usecaseinteraction"></a>

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

### Description <a href="#id-2.h2mserviceprovisionwithidentityinfoatthesp-description" id="id-2.h2mserviceprovisionwithidentityinfoatthesp-description"></a>

**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 has and manages its own authorization information indicating which Human Service Consumers are authorized to act on its behalf\*\*;
* The delegation/authorization responsible at the the Service Consumer registers the authorization information at the Service Provider;
* The Human Service Consumer is able to authenticate the Service Provider;
* The Service Provider is able to authenticate the Human Service Consumer;
* The Human Service Consumer has been issued identity credentials by the Service Provider.
* In this use case the Entitled Party is also the Service Consumer.

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

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

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

### Sequence diagram <a href="#id-2.h2mserviceprovisionwithidentityinfoatthesp-sequencediagram" id="id-2.h2mserviceprovisionwithidentityinfoatthesp-sequencediagram"></a>

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