Skip to content

Commit

Permalink
auth-policy: Add example of nested attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and slusarz committed Aug 30, 2024
1 parent 84a08d6 commit ddd66e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/core/config/auth/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,18 @@ Examples:

::: code-group
```[Configuration]
login=%{orig_username} pwhash=%{hashed_password} remote=%{real_rip}
login=%{orig_username} pwhash=%{hashed_password} remote=%{real_rip} attrs/ja3=%{ssl_ja3_hash} attrs/extra=value
```

```json[JSON Result]
{
"login": "john.doe",
"pwhash": "1234",
"remote": "127.0.0.1"
"remote": "127.0.0.1",
"attrs": {
"extra":"value",
"ja3":"md5 hash"
}
}
```
:::
Expand Down

0 comments on commit ddd66e8

Please sign in to comment.