Skip to content

Instantly share code, notes, and snippets.

@RomanGorbatko
Created November 20, 2014 10:08
Show Gist options
  • Save RomanGorbatko/9589d4645dda3acf95bc to your computer and use it in GitHub Desktop.
Save RomanGorbatko/9589d4645dda3acf95bc to your computer and use it in GitHub Desktop.
security:
providers:
in_memory:
memory: ~
administrators:
entity: { class: UasectorUserBundle:User }
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
# default:
# anonymous: ~
login:
pattern: ^/login$
security: false
# remember_me:
# key: "%secret%"
# lifetime: 31536000 # 365 days in seconds
# path: /
# domain: ~ # Defaults to the current domain from $_SERVER
secured_area:
pattern: ^/login$
security: false
logout: true
anonymous: true
oauth:
resource_owners:
vkontakte: "/login/check-vkontakte"
login_path: /login
failure_path: /login
default_target_path: /login
oauth_user_provider:
service: uasector.oauth_user_provider
access_control:
- { path: ^/login$, role: 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