2017-10-04 12:13:00+00:00
As the follow up to the knowledge base article,
I implemented:
- an OAuth 2.0 Authorization Server
- two Resource Servers
- one web based Client App
For simplicity, those four server apps are on the same git repository.
They are deployed to four different deployments as four different personalities.
I run those four server apps on the same laptop, so it is better to virtualize them using docker compose
To avoid distraction from the main points of this tutorial, I need to keep the source code size to be minimum.
Therefore, the provided source code contains no automated test code.
I also want to have the deployment configuration to be minimum, so I don't use production grade servers,
such as NGINX and uwsgi
Here is the source code: https://github.com/aldian/auth-server-demo
Production OAuth 2.0 & PKCE Hardening
Always pair Authorization Code grants with PKCE (code_challenge_method=S256), short-lived access tokens, and rotating refresh tokens. Explore the companion OAuth 2.0 Auth Server Portfolio App and Freelance Security & Identity Programmer Guide.
About the Author — Hire Freelance Programmer Aldian Fazrihady
Aldian Fazrihady is a Top-Rated Senior Freelance Programmer, Freelance Full Stack Developer, and AI Application Engineer with 15+ years of production software engineering experience and Google Cloud Professional Cloud Architect & Data Engineer certifications. He specializes in building custom LLM & autonomous AI agents, RAG pipelines, Next.js/React PWAs, Python (Django/FastAPI), Go microservices, and serverless cloud infrastructure on Google Cloud Run and AWS.
Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD via Polar) | View Live AI Portfolio | Portfolio Directory | Send a Direct Message
Related Engineering Articles
Freelance Programmer Specializations & Category Hubs
- Complete Directory of All 435+ Freelance Programmer Guides
- AI Application Engineering Hub (LLMs, RAG, MCP, Google ADK, LangGraph)
- Python, Django, FastAPI, Celery & PostgreSQL Backend Hub
- React, Next.js 15, TypeScript & React Native Mobile Hub
- Golang, Distributed Systems, AWS/GCP Cloud FinOps & DevSecOps Hub
- Industry Verticals Hub (FinTech, HealthTech, LegalTech, PropTech, ConTech)
- Verified Upwork Work History & 5.0-Star Client Reviews