This is a backport of https://github.com/juanfont/headscale/pull/1697 which trims the oidc client_secret_path.