FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Wiring Up SMART on FHIR OAuth2 Between OpenEMR and a Python Microservice Locally
How-ToProgramming Languages

Wiring Up SMART on FHIR OAuth2 Between OpenEMR and a Python Microservice Locally

via Dev.to PythonJack Jiang1mo ago

If you're building a service on top of OpenEMR locally, at some point you need to stop bypassing auth and wire up real token validation. OpenEMR ships with a full SMART on FHIR OAuth2 server — but the documentation for connecting a custom microservice to it is scattered, and the gotchas are real. The most authoritative documentation on it is here and it doesn't cover all the pitfalls. This post walks through exactly what it takes to connect a Python FastAPI service to OpenEMR's OAuth2 system, using token introspection to validate incoming requests. We'll cover both patient and staff access with separate scopes and enough detail that you don't have to rediscover the same pitfalls. The System Here's the setup: Service Tech Port openemr OpenEMR 7.0.4 (PHP + Docker) 8300 (HTTP), 9300 (HTTPS) ai-agent Python FastAPI + LangGraph 8000 Both run in Docker Compose. The OpenEMR container is internally reachable at http://openemr — which matters because your server-to-server calls (token introspec

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
27 views

Related Articles

Beyond the Code: Why the 7-Step Development Lifecycle is Your Competitive Advantage.‍
How-To

Beyond the Code: Why the 7-Step Development Lifecycle is Your Competitive Advantage.‍

Medium Programming • 13h ago

HadisKu Is Now Ad-Free: Why I Removed Ads From My Islamic App
How-To

HadisKu Is Now Ad-Free: Why I Removed Ads From My Islamic App

Dev.to • 15h ago

How-To

How To Be Productive — its not all about programming :)

Medium Programming • 15h ago

Welcome Thread - v371
How-To

Welcome Thread - v371

Dev.to • 16h ago

Which Software to Develop Apps Is Best in 2026? Top Tools Reviewed
How-To

Which Software to Develop Apps Is Best in 2026? Top Tools Reviewed

Medium Programming • 16h ago

Discover More Articles