You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The framework doesn't load related config options when using custom guards for authentication.
Expected behaviour
It should return the options dict instead of the default guard options.
masonite/authentication/Auth.py
...
defget_config_options(self, guard=None):
ifguardisNone: # Because the guard is always `None`, the default config will loadoptions=self.guard_config.get(self.guard_config.get("default"), {})
options.update(self.options)
returnoptionsoptions=self.guard_config.get(guard, {})
options.update(self.options)
returnoptions
...
masonite never passes any argument as guard to get_config_options() !
Describe the bug
The framework doesn't load related config options when using custom guards for authentication.
Expected behaviour
It should return the options dict instead of the default guard options.
masonite/authentication/Auth.py
masonite never passes any argument as
guard
toget_config_options()
!Steps to reproduce the bug
config > auth.py
CustomAdminGuard.py
almost same as the WebGuard.py
AppProvider.py
MyController.py
Masonite Version
4.20.0
The text was updated successfully, but these errors were encountered: