Skip to content

Commit

Permalink
fixed docs of security rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayesh committed Apr 13, 2019
1 parent 458a5cc commit d4200eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/manual/security/database.md
Expand Up @@ -36,14 +36,14 @@ rules:
rule: allow
```

### Authorized ( `authorized` )
### Authenticated ( `authenticated` )
This rule is used to allow the request if a valid JWT token is found in the `Authorization`. No checks are imposed beyond that. Basically it authorizes every request which has passed the authentication stage.

Example (allow read request with a valid JWT token):
```yaml
rules:
read:
rule: authorized
rule: authenticated
```

### Deny ( `deny` )
Expand Down
5 changes: 2 additions & 3 deletions docs/manual/security/file-storage.md
Expand Up @@ -39,15 +39,14 @@ rule:
rule: allow
```

### Authorized ( `authorized` )
### Authenticated ( `authenticated` )
This rule is used to allow the request if a valid JWT token is found in the `Authorization`. No checks are imposed beyond that. Basically it authorizes every request which has passed the authentication stage.

Example (allow read request with a valid JWT token):
```yaml
rule:
read:
rule: authorized
```
rule: authenticated

### Deny ( `deny` )
This rule is to deny all incoming requests. It is especially useful to deny certain operations like `delete` while selectively allowing the other ones.
Expand Down

0 comments on commit d4200eb

Please sign in to comment.