bolkedebruin / rdpgw

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

Question regarding validity duration of generated Remote Desktop configurations #114

Open pierre42100 opened 3 weeks ago

pierre42100 commented 3 weeks ago

Hello,

Thank you for your great and helpful project.

In cmd/rdpggw/security/jwt.go, the duration of the JWT that authenticates the Remote Desktop configurations is hard coded:

Expiry:  jwt.NewNumericDate(time.Now().Add(time.Minute * 5)),

Would it be possible to make this parameter configurable to obtain Remote Desktop configurations that last longer (like one or two hours for example) ?

Thank you again for your great project!