Hello
I have an app with an Oauth flow in my Flask app. It requires a https redirects to work. However https is not working in my app. I am logging the request url and it is definitely a https request from the client end.
2022-11-26T08:32:01Z app[c2d707c0] ord [info]INFO:root:https://tpw-fam.chapra.co/login-callback/
However I am getting this error:
oauthlib.oauth2.rfc6749.errors.InsecureTransportError: (insecure_transport) OAuth 2 MUST utilize https.
I can’t find a similar error in my searches.
my fly.toml
app = "tpw-fam-app"
kill_signal = "SIGINT"
kill_timeout = 5
[env]
[experimental]
allowed_public_ports = []
auto_rollback = true
entrypoint = []
exec = []
private_network = true
[build]
dockerfile = "Dockerfile.publish"
[[services]]
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[services.http_checks]]
interval = 10000
grace_period = "5s"
method = "get"
path = "/healthcheck"
protocol = "http"
restart_limit = 0
timeout = 2000
tls_skip_verify = false
I can’t even name the issue.