Skip to main content

Overview

This section covers the basics of authentication in IGUHealth. Each IGUHealth tenant is its own IDP(OIDC provider), and you can use the OIDC protocol to authenticate users and clients.

Registration

Client registration is done through the ClientApplication resource. To register a client you create a new Client Application via the API or the Admin UI.

Creating a Client Application

iguhealth create r4 ClientApplication --file clientapplication.json

Authentication flows

Below is a diagram of the two main authentication flows supported by IGUHealth. To authenticate a machine/trusted client you should use the client credentials flow. To authenticate a user you should use the authorization code flow.

Client Credentials

Authorization Code

React provider

To make it easier to authenticate users in a React application, we provide a component that will automate the authorization code flow. You can read more about this component here.