Created
April 28, 2018 22:31
-
-
Save emir/4978af65693ea728249a3bf40ae218a1 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 | |
providers: | |
entity_provider: | |
entity: | |
class: App\Entity\User | |
property: username | |
firewalls: | |
dev: | |
pattern: ^/(_(profiler|wdt)|css|images|js)/ | |
security: false | |
login: | |
pattern: ^/login | |
stateless: true | |
anonymous: true | |
json_login: | |
check_path: /login_check | |
success_handler: lexik_jwt_authentication.handler.authentication_success | |
failure_handler: lexik_jwt_authentication.handler.authentication_failure | |
register: | |
pattern: ^/register | |
stateless: true | |
anonymous: true | |
api: | |
pattern: ^/api | |
stateless: true | |
anonymous: false | |
provider: entity_provider | |
guard: | |
authenticators: | |
- lexik_jwt_authentication.jwt_token_authenticator | |
access_control: | |
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
- { path: ^/register, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
- { path: ^/api, roles: IS_AUTHENTICATED_FULLY } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment