@@ -48,13 +48,22 @@ Basic transparent proxy:
4848
4949	thv proxy my-server --target-uri http://localhost:8080 
5050
51- Proxy with OAuth  authentication to remote server:
51+ Proxy with OIDC  authentication to remote server:
5252
5353	thv proxy my-server --target-uri https://api.example.com \ 
5454	  --remote-auth --remote-auth-issuer https://auth.example.com \ 
5555	  --remote-auth-client-id my-client-id \ 
5656	  --remote-auth-client-secret-file /path/to/secret 
5757
58+ Proxy with non-OIDC OAuth authentication to remote server:
59+ 
60+ 	thv proxy my-server --target-uri https://api.example.com \ 
61+ 	  --remote-auth \ 
62+ 	  --remote-auth-authorize-url https://auth.example.com/oauth/authorize \ 
63+ 	  --remote-auth-token-url https://auth.example.com/oauth/token \ 
64+ 	  --remote-auth-client-id my-client-id \ 
65+ 	  --remote-auth-client-secret-file /path/to/secret 
66+ 
5867Proxy with OIDC protection for incoming requests:
5968
6069	thv proxy my-server --target-uri http://localhost:8080 \ 
@@ -77,19 +86,23 @@ thv proxy [flags] SERVER_NAME
7786      --host string                             Host for the HTTP proxy to listen on (IP or hostname) (default "127.0.0.1") 
7887      --oidc-audience string                    Expected audience for the token 
7988      --oidc-client-id string                   OIDC client ID 
89+       --oidc-client-secret string               OIDC client secret (optional, for introspection) 
90+       --oidc-introspection-url string           URL for token introspection endpoint 
8091      --oidc-issuer string                      OIDC issuer URL (e.g., https://accounts.google.com) 
8192      --oidc-jwks-url string                    URL to fetch the JWKS from 
82-       --oidc-skip-opaque-token-validation       Allow skipping validation of opaque tokens 
8393      --port int                                Port for the HTTP proxy to listen on (host port) 
8494      --remote-auth                             Enable OAuth authentication to remote MCP server 
95+       --remote-auth-authorize-url string        OAuth authorization endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth) 
8596      --remote-auth-callback-port int           Port for OAuth callback server during remote authentication (default: 8666) (default 8666) 
8697      --remote-auth-client-id string            OAuth client ID for remote server authentication 
8798      --remote-auth-client-secret string        OAuth client secret for remote server authentication (optional for PKCE) 
8899      --remote-auth-client-secret-file string   Path to file containing OAuth client secret (alternative to --remote-auth-client-secret) 
89100      --remote-auth-issuer string               OAuth/OIDC issuer URL for remote server authentication (e.g., https://accounts.google.com) 
90-       --remote-auth-scopes strings              OAuth scopes to request for remote server authentication (default [ openid,profile,email] ) 
101+       --remote-auth-scopes strings              OAuth scopes to request for remote server authentication (defaults: OIDC uses ' openid,profile,email' ) 
91102      --remote-auth-skip-browser                Skip opening browser for remote server OAuth flow 
92103      --remote-auth-timeout duration            Timeout for OAuth authentication flow (e.g., 30s, 1m, 2m30s) (default 30s) 
104+       --remote-auth-token-url string            OAuth token endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth) 
105+       --resource-url string                     Explicit resource URL for OAuth discovery endpoint (RFC 9728) 
93106      --target-uri string                       URI for the target MCP server (e.g., http://localhost:8080) (required) 
94107``` 
95108
0 commit comments