I have secured MapService with WMS capabilities enabled that I'm trying to consume through the ArcGIS Javascript API. I have a proxy set up with credentials but anytime I run the application the WMS layer never loads, it throws this error insteasd: "Unable to determine the correct URL to request a token to access private resources".
Has anyone successfully consumed a secured WMS service with the Javascript api?