iOS shows "Proxy Authentication Required" dialog even after passing username and password via NEProxyServer

Hi,


We are using NETunnelProviderManager for implementing VPN with HTTP/HTTPS proxy.

We have Basic Authentication method to authenticate with the Proxy, and we need to update password at the regular time interval without any need of user's manual input.


But, right now as I start VPN and access anything via Proxy it immediately shows dialog "Proxy Authentication Required". If I check the log of "protocolConfiguration" I can clearly see my password and username in the log but still, It shows a dialog box for manual entry of user Credentials for Proxy.


Can anyone suggest something which can help me in updating the Credentials automatically in the background without asking a user to enter the Proxy credentials, something like delegate that we have in NSURLSession's case. It would be really helpful if anyone can give me an idea on why my already configured proxy password and username is not considered if I set it programmatically in properties of NEProxyServer


Any response and help would be appreciable.


Thanks & Regards,

If you trace the traffic between the client the proxy, what do you see happening on the ‘wire’?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Basically, When I am setting/updating password of NEProxyServer, It is still not reflecting to the Proxied requests and when Proxy server sends HTTP_ERR 407, instead of allowing me to update password programmatically, it is displaying "Proxy Authorization Required" popup.


As per the documentation, password property of NEProxyServer says,

The password portion of the authentication credential to use when communicating with the proxy server. This property is only saved persistently if the username property is non-nil and non-empty and if the authenticationRequired flag is set.


So, where this password is being stored and how can I set or update the password for NEProxyServer

Basically, When I am setting/updating password of

NEProxyServer

So is this a problem with the setting or the updating? Does the user name and password you supply never work? Or does it work the first time but then fail to notice your updates?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Actually, the problem is with both, setting as well as with updating. Because username and password that I am supplying programmatically is never working there.


If you have any clue please suggest because we are stuck at this point.

Actually, the problem is with both, setting as well as with updating.

Bummer.

At this point I’ve got nothing )-: I think it’s worthwhile you filing a bug about this. Please post your bug number, just for the record.

And if you’d like someone to look for a workaround, please open a DTS tech support incident. However, I have to set expectations here: Based on my current understanding of this issue I’ve skeptical that any workaround will be feasible.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
iOS shows "Proxy Authentication Required" dialog even after passing username and password via NEProxyServer
 
 
Q