Bundle ignores isEnabled() flag
Drachenkaetzchen opened this issue · 3 comments
I configured EscapeWSSEAuthenticationBundle
with FOSUserBundle
as user provider. However, it seems that the enabled/disabled user flag is ignored.
I think that it should be checked if the user object returned by the user provider is an instance of AdvancedUserInterface
, and if so, it should check for isEnabled and proceed accordingly.
Hi @FELICITUS,
first of all sorry for the late reply. You're right here, handling an AdvancedUserInterface
User is not part of the bundle as it stands.
Thanks for your initial work on this! I was wondering: should we try and delegate this to the UserChecker.php instead?
Example providers: UserAuthenticationProvider and DaoAuthenticationProvider.
The big benefit of using the UserChecker is obviously that other than isEnabled(), isAccountNonLocked(), isAccountNonExpired() and isCredentialsNonExpired() are handled as well.
What do you think?
Thanks in advance for your feedback!
David
Merged!