Skip to content

Commit 1d6ded1

Browse files
authored
Update readme.md
cbauth was throwing errors until I added the struct above to coldbox.cfc. I don't know why the cbSecurity.userService isn't used for both of these, but you must have a reason.
1 parent e3b2cf8 commit 1d6ded1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ You can then continue to configure the firewall in your `config/Coldbox.cfc`.
3939

4040
## Settings
4141

42-
Below are the security settings you can use for this module. Remember you must create the `cbsecurity` struct in your `ColdBox.cfc`:
42+
Below are the security settings you can use for this module. Remember you must create the `cbsecurity` and `cbauth` structs in your `ColdBox.cfc`:
4343

4444
```js
4545
moduleSettings = {
4646

47+
cbauth = {
48+
// This is the path to your user object that contains the credential validation methods
49+
userServiceClass = "entities.user"
50+
},
4751
cbsecurity = {
4852
// The global invalid authentication event or URI or URL to go if an invalid authentication occurs
4953
"invalidAuthenticationEvent" : "",

0 commit comments

Comments
 (0)