Skip to content

Instantly share code, notes, and snippets.

@RomanGorbatko
Created November 19, 2014 07:04
Show Gist options
  • Save RomanGorbatko/5d750f5e3fd1ef2c64c1 to your computer and use it in GitHub Desktop.
Save RomanGorbatko/5d750f5e3fd1ef2c64c1 to your computer and use it in GitHub Desktop.
security:
providers:
in_memory:
memory: ~
administrators:
entity: { class: SectorUserBundle:User }
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
default:
anonymous: ~
secured_area:
oauth:
resource_owners:
vkontakte: "/login/check-vkontakte"
login_path: /connect/vkontakte
failure_path: /login
default_target_path: /login
oauth_user_provider:
service: sector.aouth_user_provider
anonymous: true
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/connect, roles: IS_AUTHENTICATED_ANONYMOUSLY }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment