# HTI Flow

[HTI](https://github.com/GIDSOpenStandaarden/GIDS-HTI-Protocol/blob/master/HTI.md) is a light-weight solution from [GIDS](https://www.gidsopenstandaarden.org/hti-health-tools-interoperability) to quickly implement client-to-client launches. In short, the HTI launch is simply a [signed JWT](https://vzvz.gitbook.io/koppeltaal-2.0-dev-guide/technische-howto/connectie-maken-met-koppeltaal/requirements/jwt-ondertekenen) with HTI-specific claims that is sent from one client to another. A public key can be used to verify that the JWT comes from a trusted source.

### Requirements

1. A [JWKS endpoint must be available](https://vzvz.gitbook.io/koppeltaal-2.0-dev-guide/technische-howto/connectie-maken-met-koppeltaal/requirements/jwks-opzetten).
2. The `module provider` uses [Token Introspection](https://vzvz.gitbook.io/koppeltaal-2.0-dev-guide/technische-howto/launchen/launch-ontvangen/token-introspection) OR must be able to relate the issuer to its JWKS endpoint.

### Information Flow

The HTI launch can be done without an authentication server. Therefore, it is important that the `module provider` is in possession of the issuer and the related JWKS endpoint. This way it can be proven that the `portal` actually signed the JWT. A public key may also be exchanged, although there is a strong preference to use JWKS since applications must implement it to make a [Connection with Koppeltaal](https://vzvz.gitbook.io/koppeltaal-2.0-dev-guide/technische-howto/connectie-maken-met-koppeltaal).

<figure><img src="https://3981540426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPE1bj6I9HtaimfAte0sh%2Fuploads%2Fgit-blob-5f4a71620947b2bb61205004564353ab0a0d75b7%2Fimage19.png?alt=media" alt="HTI Flow"><figcaption><p>HTI Flow</p></figcaption></figure>

## Topics

[TOP-KT-007 - Koppeltaal Launch](https://vzvz.atlassian.net/wiki/spaces/KTSA/pages/27123510/TOP-KT-007+-+Koppeltaal+Launch)

[TOP-KT-021 - Token Introspection](https://vzvz.atlassian.net/wiki/spaces/KTSA/pages/27131284/TOP-KT-021+-+Token+Introspection)
