Hi Eskimo,
Thanks for your quick response. But I'm trying to hold the tunnel after starting it. Basically what happens is I start the tunnel, it tries to authenticate the server but a challenge is returned from server asking for OTP, this is the point at which I want the tunnel/session to wait for re-authentication.
FYI, I'm working with Packet Tunnel and my target platform is iOS.
Regards,
Ganaraj Savant
Post
Replies
Boosts
Views
Activity
Yeah, I get the challenge during the initial tunnel bring up. That is after TLS handshake, where we usually get the "AUTH_FAILED" message.
Okay, got it, my bad. But, is there any way to show UI before returning from startTunnel(options:)?
Hi Eskimo,
Thanks for your constant support, I'm almost there.
Everything seems to be working fine till handleAppMessage(_:completionHandler:) method to learn about the messages from the app. Actually, I get updated credentials from the app. Now, how do I update it to the server so that it re-authenticates and a connection is established?
Got it, thanks!
Got it, thanks!
In case of iOS,
I get the path as: /private/var/containers/Bundle/Application/9852778D-2538-4F86-A705-F7916481DB2F/Sample.app/ssl.pem
and for macOS,
the path is: /Users/Name/Library/Developer/Xcode/DerivedData/TunnelKit-gbhxytmxhmfhnqflnzpfubtwfnvt/Build/Products/Debug/Sample.app/Contents/Resources/ssl.pem
Can framework inside my app access Users/Name?
So, basically what I'm doing is, simply pushing to second view controller like below:
@IBAction func showAlertButtonTapped(_ sender: UIButton) {
_ = AlertUtil.sharedInstance.showAlertView(message: "This is an alert message.", actionTitles: ["OK"], actions: nil)
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let viewController = storyboard.instantiateViewController(withIdentifier: "SecondViewController") as! SecondViewController
navigationController?.pushViewController(viewController, animated: true)
}
What I want is to write a common code in my showAlertView function, so that, whenever I navigate to another view controller the alert should be dismissed.
Okay, got it. Thanks!
Just wanted to know whether it is a good practice to present alert using rootViewController or not?
Now it is working on my device (the device on which I developed it) but does not work on any other device. I have added the Provisioning UDID of the devices on which I want to test it to my developer account, the application launches on those devices but connection functionality does not work. Is there something else related to Network Extension that should be taken care of?