Find the FHIR server address
IRIS accepts tokens only over https, for the exact FHIR address the token was issued for.
Find the FHIR R4 Base URL
Sign in to your IRIS Management Portal and open Health > your FHIR namespace > FHIR Server Management. The server card shows the endpoint path after URL:.
- Format:
https://{IRIS web server host}{URL path} - Example: if you reach IRIS at
https://iris.example.organd the card showsURL: /csp/healthshare/fhirserver/fhir/r4, your FHIR R4 Base URL ishttps://iris.example.org/csp/healthshare/fhirserver/fhir/r4 - Check it against the
implementation.urlvalue at{FHIR R4 Base URL}/metadata, and use that value exactly, including any port it shows.

Register a SMART app on your server
These steps use the OAuth 2.0 server built into IRIS. On an external authorization server, create a confidential client with the same redirect URL, grant type, authentication type and scopes.
Check the authorization server
In the IRIS Management Portal, open System Administration > Security > OAuth 2.0 > Server.
- Supported grant types (check at least one): Authorization code selected
- Return refresh token: If offline_access scope requested
- Click Save.
- Leave Authorization URL and Token URL empty when the Issuer endpoint has the same host as your FHIR server. Otherwise, add
/oauth2/authorizeand/oauth2/tokento the Issuer endpoint, or use the endpoints of your external authorization server.

Add the scopes
On the Scopes tab, check that openid, fhirUser, offline_access, user/*.rs and user/*.cud are listed. Patient sign-in also uses launch/patient and patient/*.rs. Add the ones the list is missing.
- Click Add Supported Scope.
- Enter supported scope: the scope, such as
offline_access - Click OK.
- Click Save.

Create the client
On the server configuration page, open Client Descriptions.
- Click Create Client Description.
- Name:
StackOne - Client type: Confidential
- Click Add URL.
- Enter URL: the Callback URL shown when you connect
- Click OK.
- Supported grant types (check at least one): Authorization code
- Authentication type: form encoded body
- Click Save.

Copy the client credentials
In the OAuth 2.0 Server list, click the new client’s name.
- Open the Client Credentials tab.
- Copy the Client ID across.
- Click show next to Client secret.
- Copy the Client secret across.

Link the Account
Connect
- Click Connect.
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup.
Use Actions