S
S
Sergey K2015-11-18 21:16:36
symfony
Sergey K, 2015-11-18 21:16:36

Symfony2 + Custom authorization. How?

Please tell me, something I can’t figure out at all how to make authorization in the symphony through the login / password form.
With the help of the article symfony.com/doc/current/cookbook/security/custom_a... I created a provider, but how to make friends with the login form?
I'm completely new to symphony, so I want to figure it out without using FOSUserBundle.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-12-21
@CooperIII

Maybe they forgot about it.

# app/config/services.yml
services:
    wsse.security.authentication.provider:
        class: AppBundle\Security\Authentication\Provider\WsseProvider
        arguments:
            - '' # User Provider
            - '%kernel.cache_dir%/security/nonces'
        public: false

    wsse.security.authentication.listener:
        class: AppBundle\Security\Firewall\WsseListener
        arguments: ['@security.token_storage', '@security.authentication.manager']
        public: false

On the contrary, I first wrote my authorization, and then I studied FOSUserBundle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question