Simple OAuth2 Client as Caddy Module
caddy_oauth2 {
auth_path /oauth2/google
client_id <client id>
client_secret "<client secret>"
auth_url "<auth url>"
token_url "<token url>"
redirect_url "<host>/oauth2/google/callback"
scopes "name" "avatar" "email"
}
OAuth2 token will pass to backend in heaer oauth2-token