How to Build Centralized Auth for Internal Tools Using Caddy and Azure AD
A developer at a company using Azure AD set out to eliminate repeated authentication setup across internal tools by routing everything through a single login system. The solution combines Caddy, a modern reverse proxy with automatic HTTPS, and the caddy-security plugin (AuthCrunch), which adds OAuth2/OIDC support directly within Caddy. The setup involves compiling a custom Caddy binary with the plugin, configuring a dedicated system user, and running the server as a systemd service. An authentication portal hosted on a subdomain handles logins, session cookies, and OAuth2 callbacks against the existing Microsoft tenant. The approach means adding new internal tools requires only minimal config changes, with no separate user databases or password reset flows to manage.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in