Skip to content

Add --callback-addr flag to support running behind TLS-terminating proxies by decoupling the callback server bind address from the redirect URL and using certificate presence to determine protocol.#141

Merged
mbilski merged 1 commit intomasterfrom
feature/callback-addr
Jan 21, 2026

Conversation

@mbilski
Copy link
Contributor

@mbilski mbilski commented Jan 21, 2026

Fixes #140

  • Add --callback-addr flag to override callback server bind address
  • Change protocol selection to be based on TLS certificate presence instead of redirect URL scheme

This enables oauth2c to work behind TLS-terminating proxies where the public redirect URL is HTTPS but the local callback server needs to bind to a different address and serve plain HTTP.

oauth2c --redirect-url https://example.com/callback --callback-addr 0.0.0.0:8080

…oxies by decoupling the callback server

bind address from the redirect URL and using certificate presence to determine protocol.
@mbilski mbilski merged commit e77f02a into master Jan 21, 2026
4 checks passed
@mbilski mbilski deleted the feature/callback-addr branch January 21, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serve callback over HTTP with HTTPS redirect_uri behind TLS-terminating ingress

3 participants