Correctly parse the provider into a tenant ID
The existing code had two issues:
- it parsed
provider.Host
instead ofprovider.Path
-
provider.Path
always starts with a slash, soCut()
wouldn’t provide the first path component, but an empty string instead