Symfony multiple firewalls with same context -


i'm trying have 2 firewalls working in same context, when user logs in using form api methods available him.

i've defined way:

        api:             anonymous: true             stateless: true             guard:                 authenticators:                     - 'jwt_token_authenticator'             pattern: ^/api/             context: retain_security         main:             pattern: ^/             anonymous: false             provider: our_db_provider             form_login:                 always_use_default_target_path: true                 csrf_token_generator: security.csrf.token_manager                 login_path: /login                 check_path: /login_check                 default_target_path: /             logout:                 path: logout                 target: /             remember_me:                 secret:   '%secret%'                 lifetime: 604800 # 1 week in seconds                 path:     /             context: retain_security 

i'm using https://github.com/lexik/lexikjwtauthenticationbundle , using same context stated here: http://symfony.com/doc/current/reference/configuration/security.html#reference-security-firewall-context

problem once log in through form i'm "anonymous" api methods.

any ideas of wrong? missing something?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -