Skip to content

Commit 7bdcda3

Browse files
authored
Merge pull request #16 from homestar9/patch-1
Spelling corrections
2 parents 588a224 + 890447c commit 7bdcda3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cbauth = {
5151
cbsecurity = {
5252
// The global invalid authentication event or URI or URL to go if an invalid authentication occurs
5353
"invalidAuthenticationEvent" : "",
54-
// Default Auhtentication Action: override or redirect when a user has not logged in
54+
// Default Authentication Action: override or redirect when a user has not logged in
5555
"defaultAuthenticationAction" : "redirect",
5656
// The global invalid authorization event or URI or URL to go if an invalid authorization occurs
5757
"invalidAuthorizationEvent" : "",
@@ -134,7 +134,7 @@ Using the default configuration, this module will register the `Security` interc
134134
135135
The interceptor will intercept all calls to your application via the `preProcess()` interception point. Each request will then be validated against any registered security rules and then validated against any handler/action security annotations (if active) via a Security Validator. Also, if the request is made to a module, each module has the capability to have it's own separate validator apart from the global one.
136136

137-
> **Info** You can deactive annotation driven security via the `handlerAnnotationSecurity` setting.
137+
> **Info** You can deactivate annotation driven security via the `handlerAnnotationSecurity` setting.
138138
139139
### How does validation happen?
140140

@@ -327,7 +327,7 @@ component{
327327

328328
### Authorization Context
329329

330-
You can also give the annotation some value, which can be anything you like: A list of roles, a role, a list of permissions, metadata, etc. Whatever it is, this is the **authorization context** and the security validator must be able to not only authenticate but authorize the context or an invalid authorization will occurr.
330+
You can also give the annotation some value, which can be anything you like: A list of roles, a role, a list of permissions, metadata, etc. Whatever it is, this is the **authorization context** and the security validator must be able to not only authenticate but authorize the context or an invalid authorization will occur.
331331

332332
```js
333333
// Secure this handler
@@ -417,7 +417,7 @@ private function permissionValidator( permissions, controller, rule ){
417417

418418
## Interceptions
419419

420-
When invalid access or authorizations occurr the interceptor will announce the following events:
420+
When invalid access or authorizations occur the interceptor will announce the following events:
421421

422422
- `cbSecurity_onInvalidAuthentication`
423423
- `cbSecurity_onInvalidAuthorization`

0 commit comments

Comments
 (0)