mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Update authorization.md
This commit is contained in:
parent
48b7a505de
commit
c1884f881f
@ -66,3 +66,32 @@ authorization {
|
||||
|
||||
> Note that in the above example, any client with permissions to subscribe to `_INBOX.>` can receive _all_ responses published. More sensitive installations will want to add or subset the prefix to further limit subjects that a client can subscribe. Alternatively, [_Accounts_](auth_intro/accounts.md) allow complete isolation limiting what members of an account can see.
|
||||
|
||||
Here's another example, where the `allow` and `deny` options are specified:
|
||||
|
||||
```
|
||||
authorization: {
|
||||
users = [
|
||||
{
|
||||
user: admin
|
||||
password: secret
|
||||
permissions: {
|
||||
publish: ">"
|
||||
subscribe: ">"
|
||||
}
|
||||
}
|
||||
{
|
||||
user: test
|
||||
password: test
|
||||
permissions: {
|
||||
publish: {
|
||||
deny: ">"
|
||||
},
|
||||
subscribe: {
|
||||
allow: "client.>"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user