Skip to content

Instantly share code, notes, and snippets.

@rawroland
Last active November 23, 2016 19:09
Show Gist options
  • Save rawroland/0e86ba601d18c9769c9761354c3f7be3 to your computer and use it in GitHub Desktop.
Save rawroland/0e86ba601d18c9769c9761354c3f7be3 to your computer and use it in GitHub Desktop.
access_control:
# Would I need to write such rules for all urls?
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, ips: [1.1.1.0/24]}
- { path: ^/reset-password, roles: IS_AUTHENTICATED_ANONYMOUSLY, ips: [1.1.1.0/24]}
- { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment