-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Can you use cbauth (via cbsecurity) in a submodule? #21
Comments
@elpete checking in on this issue to make sure you received it. In other words, a module should be able to set up cbauth instead of relying on the root app to do it. |
I believe when we set this up it was intended to set both manually in the |
I'm trying to figure out if this is a bug, intentional behavior, or just user error on my part.
I have a Coldbox app that only needs to use cbauth (via cbsecurity) in a module. I have defined my cbsecurity settings in the module's ModuleConfig.cfc like this:
However, when I try to access the submodule I get the following error:
No [userServiceClass] provided. Please set in
config/ColdBox.cfc
undermoduleSettings.cbauth.userServiceClass
.I can make the error go away if I put the following in my root app's Coldbox.cfc config file:
However, it smells funny to me to have to specify the cbauth settings in the app root if cbauth is only needed at the module level. Is this intentional behavior of cbauth? Or perhaps I am missing something?
The text was updated successfully, but these errors were encountered: