ecphp / cas-bundle

CAS Bundle, a standard Symfony bundle for authentication using CAS protocol.
https://ecphp-cas-bundle.readthedocs.io
BSD 3-Clause "New" or "Revised" License
43 stars 9 forks source link

Other provider #78

Closed bpierrot closed 1 year ago

bpierrot commented 1 year ago

Steps required to reproduce the problem

Is there a way to use another provider than the cas provider such as user provider or ldap provider?

providers:
    user_provider:
        entity:
            class: 'App\Entity\User'
            property: username

    main:
        provider: user_provider

image

-

drupol commented 1 year ago

Hello!

The CasAuthenticator service is being injected a default user provider, so it is fully possible to decorate it with your own and implements your custom logic and user.

Let me know if you need further help.

drupol commented 1 year ago

Dear @bpierrot,

Did my answer helped you?