Authentication with Caddy Server

By Taha4 minutes read

Disclaimer


Method 1: Basic Authentication

Step 1: Create a Password Hash


Step 2: Restart and Test Caddy


Method 2: OAuth (Google)

Step 1: Create a Google OAuth Credentials

Step 1.1: Create a Google Cloud Project

Step 1.2: Create OAuth Application

Step 1.3: Create OAuth Client ID and Copy Credentials


Step 2: Install caddy-securty Plugin


Step 3: Configure Caddy with Google OAuth

Step 4: Restart and Test Caddy


Conclusion

Credits