Created
February 4, 2019 21:16
-
-
Save andrechavesg/bc37d4fc9a34597d13fdab069c895abc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security: | |
encoders: | |
App\Entity\User: | |
algorithm: bcrypt | |
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers | |
providers: | |
# used to reload user from session & other features (e.g. switch_user) | |
app_user_provider: | |
entity: | |
class: App\Entity\Usuario | |
property: login | |
firewalls: | |
dev: | |
pattern: ^/(_(profiler|wdt)|css|images|js)/ | |
security: false | |
main: | |
anonymous: true | |
guard: | |
authenticators: | |
- App\Security\LoginFormAuthenticator | |
oauth: | |
resource_owners: | |
facebook: "/connect/service/facebook" | |
login_path: /oauth/login | |
use_forward: false | |
failure_path: /login | |
oauth_user_provider: | |
service: oauth_user_provider | |
# activate different ways to authenticate | |
# http_basic: true | |
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate | |
# form_login: true | |
# https://symfony.com/doc/current/security/form_login_setup.html | |
# Easy way to control access for large sections of your site | |
# Note: Only the *first* access control that matches will be used | |
access_control: | |
# - { path: ^/admin, roles: ROLE_ADMIN } | |
# - { path: ^/profile, roles: ROLE_USER } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment