Intranet sites via VPN

I created an application that receives data from web services on the In TRA website. For my application to see these sites, I must enable the VPN that is configured for our company intranet. So when I turn on the VPN, it asks for authentication. This should be enabled before starting my application, because I don’t know how to access the VPN through the code (is there anything in the SDK for working with VPN?)

Problem is that after launching my application, the application must be authenticated on the intranet website (authentication cannot be disabled for security reasons). p>

So in this case:

  • The user turns on the VPN, enters network credentials to gain access to the internal network.
  • The user launches an application requesting network credentials (since the web server requested authorization)

So, as you can see, this is very painful (you need to enter the network credentials twice).

Anyone have any ideas on how I could get around this?

BTW - I use ASIHTTPRequest in my code.

+7
iphone
source share
2 answers

There is no way. You cannot use your own VPN provider. The best thing you can do is to check if the user is currently connected via VPN, and if not, provide some feedback that indicates that they need to enable VPN and how to do it. While it is not turned on, disable all the functionality of the application.

Like iOS5, the process is getting a little better. Now you can redirect the user directly to the settings page according to the URL scheme. To go to network settings, you should use this scheme:

[NSURL URLWithString:@"prefs:root=General&path=Network"]];

+1
source share

you can watch a theme called “VPN On Demand” on ipad / iphone, it works with many providers, and I think that it should do what you want.

0
source share

All Articles