I'm trying to set up our portal to not display Google authentication as
a choice when the device that's connecting is an iPhone. Why? Well,
OAuth doesn't work anymore with iPhones since Google changed things and
required a full-blown browser when doing OAuth rather than the mini
browser that iPhones use when authenticating to a portal (the dreaded
403 "disallowed_useragent" error).

My first thought was to have a completely different connection profile
strictly for iPhones that wouldn't have Google as an authentication
choice. However, using device_class == "iPhone" in the advanced filter
on the profile doesn't seem to work so users see the default portal
that has Google listed. In fact, the advanced filter doesn't seem to
work at all - changing the default profile to have a filter of
device_class == "Windows" still shows that portal for all devices.

Anyways, my next thought was to modify the content-with-choice.html
file to look at the user agent and filter out the Google authentication
if the user agent contained "iPhone". The problem I'm having here is
determining which variable holds the user agent. What I want to do is
something like:
[% FOREACH module in modules %]
[% IF module.id == "Guest_root+Guest_authentication+Guest_Google" &&
user_agent =~ "iPhone" %]
<do something specific for iPhones>
[% ELSE %]
<display normally>
[% END %]
[% END %]

Has anyone else done this? Or better yet, how is everyone else dealing
with the Google/iPhone issue?

Thanks
Tom

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
  • [PacketFence-users] Dynamic aut... Thomas M. Wilson via PacketFence-users

Reply via email to