Skip to content

Commit af11a48

Browse files
committed
Merge branches 'master' and 'development' of github.com:ColdBox/cbox-security
2 parents 1d4063f + c66a8f5 commit af11a48

File tree

21 files changed

+518
-479
lines changed

21 files changed

+518
-479
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,16 @@ jobs:
7474
7575
- name: Start ${{ matrix.cfengine }} Server
7676
working-directory: ./test-harness
77-
run: |
78-
box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug
79-
# Install Adobe 2021 cfpm modules
80-
if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
81-
box run-script install:2021
82-
fi
83-
curl http://127.0.0.1:60299
77+
run: box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug
78+
79+
- name: CFPM Setup
80+
if: ${{ matrix.cfengine == 'adobe@2021' }}
81+
working-directory: ./test-harness
82+
run: box run-script install:2021
83+
84+
- name: Prime ${{ matrix.cfengine }} server
85+
working-directory: ./test-harness
86+
run: curl http://127.0.0.1:60299
8487

8588
- name: Run Tests
8689
working-directory: ./test-harness

.github/workflows/pr.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,16 @@ jobs:
6060
6161
- name: Start ${{ matrix.cfengine }} Server
6262
working-directory: ./test-harness
63-
run: |
64-
box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug
65-
curl http://127.0.0.1:60299
63+
run: box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug
64+
65+
- name: CFPM Setup
66+
if: ${{ matrix.cfengine == 'adobe@2021' }}
67+
working-directory: ./test-harness
68+
run: box run-script install:2021
69+
70+
- name: Prime ${{ matrix.cfengine }} server
71+
working-directory: ./test-harness
72+
run: curl http://127.0.0.1:60299
6673

6774
- name: Run Tests
6875
working-directory: ./test-harness

box.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ColdBox Security",
3-
"version":"2.14.0",
3+
"version":"2.15.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",
@@ -35,7 +35,7 @@
3535
},
3636
"scripts":{
3737
"release":"recipe build/release.boxr",
38-
"format":"cfformat run handlers/,interceptors/,models/,test-harness/tests/specs,ModuleConfig.cfc",
38+
"format":"cfformat run handlers/,interceptors/,models/,test-harness/tests/specs,ModuleConfig.cfc --overwrite",
3939
"format:watch":"cfformat watch handlers/,interceptors/,models/,test-harness/tests/specs,ModuleConfig.cfc ./.cfformat.json",
4040
"format:check":"cfformat check handlers/,interceptors/,models/,test-harness/tests/specs,ModuleConfig.cfc"
4141
}

changelog.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
----
99

10+
## [2.15.0] => 2021-DEC-10
11+
12+
### :rocket: Added
13+
14+
* Pass custom claims from `refreshToken( token, customClaims)` method when refreshing tokens
15+
* Pass in the current jwt payload in to `getJWTCustomClaims( payload )`
16+
* The auto refresh token features now will auto refresh not only on expired tokens, but on invalid and missing tokens as well. Thanks to @elpete
17+
18+
### :bug: Fixed
19+
20+
* Timeout in token storage is now the token timeout
21+
22+
----
23+
1024
## [2.14.0] => 2021-OCT-07
1125

1226
### Added
@@ -217,7 +231,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
217231
* If a rule is matched, we will store it in the `prc` as `cbSecurity_matchedRule` so you can see which security rule was used for processing invalid access actions.
218232
* If a rule is matched we will store the validator results in `prc` as `cbSecurity_validatorResults`
219233
* Ability for modules to register cbSecurity rules and setting overrides by registering a `settings.cbSecurity` key.
220-
* Ability for modules to override the `validator` setting. So each module can have their own security validator schema.
234+
* Ability for modules to override the `validator` setting. So each module can have their own security validator schema.
221235
* New security rule visualizer for graphically seeing you rules and configuration. Can be locked down via the `enableSecurityVisualizer` setting. Disabled by default.
222236

223237
```json
@@ -296,7 +310,7 @@ settings = {
296310
## [1.0.2]
297311

298312
* Removed `getPlugin()` deprecated calls to new approach.
299-
* https://ortussolutions.atlassian.net/browse/CCM-26 cbsecurity ocm rules not ColdBox 4 compat
313+
* https://ortussolutions.atlassian.net/browse/CCM-26 cbsecurity ocm rules not ColdBox 4 compat
300314

301315
## [1.0.1]
302316

0 commit comments

Comments
 (0)