Skip to content

Commit 5ab2b4f

Browse files
committed
Merge branch 'development'
2 parents e88a455 + 71028d2 commit 5ab2b4f

File tree

11 files changed

+836
-67
lines changed

11 files changed

+836
-67
lines changed

box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ColdBox Security",
3-
"version":"2.2.1",
3+
"version":"2.3.0",
44
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbsecurity/@build.version@/[email protected]@.zip",
55
"author":"Ortus Solutions.com <[email protected]",
66
"slug":"cbsecurity",

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 2.3.0
4+
5+
* `Feature` Introduction of the cbSecurity model: https://coldbox-security.ortusbooks.com/intro/release-history/whats-new-with-2.3.0
6+
* `Task` : Cfformatting everywhere
7+
38
## 2.2.1
49

510
* `bug` : `verify` should pass `verify=true` into the jwt library for proper verification

helpers/mixins.cfm

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<cfscript>
2+
/**
3+
* Retrieve the JwtService
4+
*/
25
function jwtAuth() {
36
return wirebox.getInstance( "JwtService@cbSecurity" );
4-
}
7+
}
8+
9+
/**
10+
* Retrieve the CBSecurity Service Object
11+
*/
12+
function cbSecure() {
13+
return wirebox.getInstance( "CBSecurity@cbSecurity" );
14+
}
15+
516
</cfscript>

interceptors/Security.cfc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ component accessors="true" extends="coldbox.system.Interceptor" {
1111
// DI
1212
property name="rulesLoader" inject="rulesLoader@cbSecurity";
1313
property name="handlerService" inject="coldbox:handlerService";
14+
property name="cbSecurity" inject="@cbSecurity";
1415

1516
/**
1617
* The reference to the security validator for this interceptor
@@ -185,6 +186,9 @@ component accessors="true" extends="coldbox.system.Interceptor" {
185186
prc,
186187
buffer
187188
){
189+
// Add SecureView() into the requestcontext
190+
arguments.event.secureView = variables.cbSecurity.secureViewProxy;
191+
188192
// Execute Rule processing
189193
if ( getProperty( "rules" ).len() ) {
190194
processRules(

0 commit comments

Comments
 (0)