Posts

Post not yet marked as solved
1 Replies
851 Views
Hi, Question: Is there a way to detect Captive network and show the UI to authenticate to it from within a third party app/plugin on macOS? I tried using URLSession to detect the presence of captive portal by loading the detection URL http://captive.apple.com/hotspot-detect.html but the task fails with no internet connection error without the delegate getting any calls about redirect or auth challenge. Same behavior with WKWebView when I try to load the detection URL, the provisional navigation simply fails with no internet connection error. Context: I'm building an Auth plugin to do something before users log in to their mac and it requires internet connectivity. I wanted to let the users connect to a wifi network if they aren't already connected. I got connecting to regular networks working but not the captive networks.
Posted
by santhoshr.
Last updated
.
Post not yet marked as solved
0 Replies
667 Views
Is it possible to display an ASWebAuthenticationSession or a WKWebView in the context of an auth plugin? I'm currently able to display a custom UI in a window whose canBecomeVisibleWithoutLogin is set to true as part of my unprivileged mechanism. I tried using ASWebAuthenticationSession and making my window the presentationContextProvider for the session but it doesn't work. I also tried displaying a webview but it doesn't render. I checked the nav delegate calls and the navigation is failing with the request timing out. Is there any config or trick to make either of them work? Oh also, URLSession data task calls are also failing with request timing out from my mechanism. I'm guessing there's some restriction related to networking in general?
Posted
by santhoshr.
Last updated
.