Skit
Skit
CC#
Created by Skit on 12/15/2023 in #help
✅ WCF Basic Auth works with Windows but not Android Client
These binding settings work with my .net maui windows client but on android i get this response " The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'Basic realm=""'."
BasicHttpBinding binding = new BasicHttpBinding
{
Security = new BasicHttpSecurity
{
Mode = BasicHttpSecurityMode.Transport,
Message = new BasicHttpMessageSecurity()
{
ClientCredentialType = BasicHttpMessageCredentialType.UserName,
},
Transport = new HttpTransportSecurity
{
ClientCredentialType = HttpClientCredentialType.Basic,
ProxyCredentialType = HttpProxyCredentialType.Basic
}
},
AllowCookies = true,
MaxReceivedMessageSize = int.MaxValue,
ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max,
MaxBufferSize = int.MaxValue,
};
BasicHttpBinding binding = new BasicHttpBinding
{
Security = new BasicHttpSecurity
{
Mode = BasicHttpSecurityMode.Transport,
Message = new BasicHttpMessageSecurity()
{
ClientCredentialType = BasicHttpMessageCredentialType.UserName,
},
Transport = new HttpTransportSecurity
{
ClientCredentialType = HttpClientCredentialType.Basic,
ProxyCredentialType = HttpProxyCredentialType.Basic
}
},
AllowCookies = true,
MaxReceivedMessageSize = int.MaxValue,
ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max,
MaxBufferSize = int.MaxValue,
};
I have tried many combinations but nothing seems to work. And on google i don't find anything android related. Anyone got an idea what could be the reason?
3 replies
CC#
Created by Skit on 4/27/2023 in #help
❔ Writting tests for api calls
i am writing a test for api calls on an external web api. If i have one post test that creates something, is it bad practice to base my get test on the data created from the previous post test?
18 replies
CC#
Created by Skit on 9/18/2022 in #help
Update Database with EF core doesn't work and no error message
68 replies