The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Discord channel for questions: https://discord.gg/TwKeFahmPZ
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
...
def get_config_options(self, guard=None):
if guard is None: # Because the guard is always `None`, the default config will load
options = self.guard_config.get(self.guard_config.get("default"), {})
options.update(self.options)
return options
options = self.guard_config.get(guard, {})
options.update(self.options)
return options
...
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