I have OpenLayers embedded in a desktop application and I'm trying to request a WMS map layer from a server that requires authentication.
Because of the environment I can't have the popup that a browser would typically display to require authentication and that wouldn't be acceptable to a customer anyway.
For now I want to use the format of https://{username}:{password}@domain.com/wms?
If I pass that to OpenLayers as the url of a ol.source.TileWMS the requests have the username and password removed and I always see 401 errors returned and looking at the url the username and password has been stripped off.