Auth Event History

Use the dashboard audit trail to debug patient portal authorization attempts.

Auth Event History shows what happened during SMART on FHIR authorization. Use it when a patient says they tried to connect but your app does not show an active connection.

When To Use It

Use the history when you need to answer:

  • Did the patient reach the portal?
  • Which source was involved?
  • Did the patient cancel consent?
  • Did the portal return an OAuth error?
  • Did token exchange succeed?
  • Was the event tied to the right patient and organization?

Open The Patient

In the dashboard, open Patients, select the patient, and inspect the connection and login history sections.

Auth event history

What To Look For

SignalMeaning
Source nameThe EHR or payer involved in the attempt.
Event statusSuccess, failure, or in-progress state.
Error codeStable code for support and retry handling.
Error descriptionHuman-readable portal or OAuth error.
TimestampWhen the attempt happened.

Common Outcomes

OutcomeInterpretation
Successful auth event and active connectionThe patient granted access. Background Pull may still be running.
Failed auth event with access_deniedThe patient canceled or denied consent.
Failed auth event with callback errorThe portal returned an OAuth error to Medblocks.
Active connection later becomes refresh_failedInitial auth worked, but refresh token renewal later failed.

What Your App Should Log

Log these values from the return URL and API response:

  • session_id
  • connection_id
  • success
  • error
  • error_description
  • Medblocks API request_id when an API call fails

These values make it much faster to find the matching dashboard event.