Allowing any port in redirect_uri for a client

I need to allow redirect_uri to be any port on a host. For example, like “http://localhost:*/auth”. But, this exact expression doesn’t seem to work.

By simply disregarding ports and everything that follows it, if I use “http://localhost*” - this works. But the downside is that I don’t get to mention the actual endpoint. Something like “http://localhost*/auth” also doesn’t seem to work. Just wondering if there’s any right way of solving this.