Hi, I'm facing an issue when trying to display a secured WMS Layer on my Map.
The Service is secured and I want to authorize using basic authorization.
After loading the WMS-Layer I get an error because I'm "Unauthorized", although I handled the Authorization Challenge correctly.
After analyzing HTTP-Traffic, this is what I found:
Most of the time, Username and Password are not present in the Authorization Header after my Auth-Challenge Method was called:
Header: Authorization: Basic Og== ('Og==' is just ':' Base64 encoded)
Sometimes (like 1 in 10) the header is set correctly: Authorization: Basic {username:password, base64}
ServiceUri has be be correct because when i change it there is no Authorization-Header at all.
This is my CreateCredentialAsync-Method:
public Task<Credential> CreateCredentialAsync(CredentialRequestInfo requestInfo)
{
return Task.FromResult((Credential) new ArcGISNetworkCredential("https://myService.com/something",
"username", "password"));
}
Normally I'd have to load the credentials asynchronously, but ArcGIS behaves the same with this simplified CreateCredentialAsync Method.
I'm using ArcGIS Runtime 200.6
Could this be an issue within the ArcGIS SDK?
Thanks for any help