Captive Network Assistant

Questions:

  1. Is it possible to set up Facebook login for use in the CNA?

    If so, please provide links to examples if they exist.

  2. Does CNA documentation exist for developers?

    If so, please provide a link.

  3. Can you debug the CNA screen with developer tools?

    If so, how?

  4. Is it possible to force the use of Safari instead of the CNA?

    If so, how?


Details:

I have created a captive portal login page that uses an email submission form or a Facebook login button. The login button uses javascript as documented on Facebook's developer resources to open a window and log the user in.


Testing:

  • CNA:

    Clicking the Facebook sign in button redirects to the facebook login after multiple clicks. Facebook login page allows submission of username and password but does not generate these entries from cookies. After submission, the page is blank and login is not completed.

  • Full Featured Browsers:

    In Safari, Chrome, Firefox, etc. the social sign is functioning and works as expected. All browsers redirect the user to the login page, the user may use the email submission button or the social sign to authenticate on the hotspot and redirected to a landing page. The problems only occur on the CNA.


Thanks for any help on this issue,

Brian

Replies

Hi Brian!


I have the same problem... CNA is driving me mad! There's plenty of StackOverflow questions about this issue, and as of today they all lack 100% satisfying answers:


* http://stackoverflow.com/questions/23281552/captive-wifi-popup-click-a-link-to-open-safari

* http://stackoverflow.com/questions/29744245/ios-open-a-welcome-page-in-safari-not-cna-post-authentication

* http://stackoverflow.com/questions/36128510/facebook-login-oauth-and-osx-10-11-cna

* http://stackoverflow.com/questions/39495989/facebook-login-on-apple-cna

* http://stackoverflow.com/questions/35610240/facebook-apple-cna


The only "solution" I have found so far is to disable CNA altogether. It's a bit hackish and possibly hard to mantain, but here it is: add the domain apple.com to the whitelist of your walled garden. On Chilli + OpenWRT, you need to login in your router and add apple.com to HS_UAMDOMAINS in /etc/chilli/defaults. In this way, the CNA browser won't open because the probe URL (captive.apple.com/hotspot-detect.html, defined in /Library/Preferences/SystemConfiguration/CaptiveNetworkSupport/Settings.plist) is now reachable.


Cheers,
Guido