Cannot link with Philips Hue: "The requested permission could not be verified."

This URL suggests your tunnel might be broken as described here:

That’s unfortunately a problem with the tunnel service in use and the suggested workaround would be to trigger the creation of a new tunnel by editing the config file in which the tunnel identifier is stored.

In case Hue supports localhost redirects, you could also try using http://localhost:5679/rest/... as the redirect URL instead of the tunnel URL.