mirror of
https://github.com/rclone/rclone.git
synced 2026-06-10 17:34:30 -04:00
rclone starts a http listener if the user is adding a remote that requires oauth. The problem is that sometimes this breaks or the user stops midway with no way of us knowing that. Once that happens, clients of the api break. In the best scenario, new remotes cannot be configured without a restart. This change adds 2 oauth related endpoints, one to get the status of the listener and one to stop it. This allows clients to go back to normal without having to restart rclone. - config/oauthstop - cancels an in-progress OAuth flow and releases the port. - config/oauthstatus - reports "running" / "stopped".