As per the flow diagram below I want to restrict access for users outside my network. However rather then completely stopping external access I want them to be redirected to a login page where they will be required to login via google, there email address will have to be within the organisation to be granted access.
Any help/advice much appreciated.
{% requireLogin %}
tag on pages you want protected, craftcms.com/docs/templating/requirelogin – mcclaskiem Apr 19 '16 at 13:40_layout
level:{% if not currentUser %}
. Then also add some logic to look at their IP address as well and direct them accordingly. You may be better off writing this as a service and then binding it to a variable in the plug-in so you can access it in templates easier. – mcclaskiem Apr 19 '16 at 13:44