eZ Community » Forums » eZ Publish 5 Platform » eZ Publish 5 IP restriction using a...
expandshrink

eZ Publish 5 IP restriction using a Symfony Security Voter

eZ Publish 5 IP restriction using a Symfony Security Voter

Friday 05 December 2014 8:10:25 am

I needed to implement eZ Publish 5 IP restriction to an extranet site.

After looking at a few options I ended up using Symfony2 Security Voters for this task. There are probably other ways, but this was a simple way that works.

The default tutorial from Symfony site works fine with eZ Publish 5: http://symfony.com/doc/2.0/cookbook/security/voters.html

The example is for blacklisting IPs, but it was easy to modify to whitelisting which I needed.

Modified on Friday 05 December 2014 8:56:25 am by Jani Tarvainen

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from