Skip to content

Commit 2e20146

Browse files
committed
fixed tests
1 parent 999b46b commit 2e20146

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test-harness/config/Coldbox.cfc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
cbSecurity : {
7070
// Global Relocation when an invalid access is detected, instead of each rule declaring one.
7171
"invalidAuthenticationEvent" : "main.index",
72+
// Default invalid action: override or redirect when an invalid access is detected, default is to redirect
73+
"defaultAuthenticationAction" : "redirect",
7274
// Global override event when an invalid access is detected, instead of each rule declaring one.
7375
"invalidAuthorizationEvent" : "main.index",
7476
// Default invalid action: override or redirect when an invalid access is detected, default is to redirect

test-harness/tests/specs/integration/SecuritySpec.cfc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ component
3939
beforeEach( function(currentSpec){
4040
// Setup as a new ColdBox request for this suite, VERY IMPORTANT. ELSE EVERYTHING LOOKS LIKE THE SAME REQUEST.
4141
setup();
42+
cbauth = getInstance( "authenticationService@cbauth" );
43+
cbauth.logout();
4244
} );
4345

4446

0 commit comments

Comments
 (0)