bolkedebruin / rdpgw

Remote Desktop Gateway in Go for deploying on Linux/BSD/Kubernetes
Apache License 2.0
693 stars 117 forks source link

Adjust Basic Auth Timeout #90

Closed ryanblenis closed 6 months ago

ryanblenis commented 6 months ago

We are using "local" auth in combination with pam_radius to authenticate via DUO proxy (i.e. RADIUS server with MFA) and found the BasicAuth timeout was statically set to 5 seconds. This does not leave users enough time to respond to MFA requests before the context deadline drops the connection.

This removes the static 5 seconds and adds a configuration setting for "BasicAuthTimeout" with a default of 5 seconds, but is configurable in cases such as these where longer timeouts are prefereable.

bolkedebruin commented 6 months ago

Awesome!