1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Merge pull request #192 from nats-io/matthiashanel-patch-3-1

adding password to sample
This commit is contained in:
Ginger Collison 2021-01-08 09:18:44 -06:00 committed by GitHub
commit 0386ebb6e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,13 +136,13 @@ User `a` can ony subscribe to `foo` as part of the queue subscriptions `queue`.
```text
users = [
{
user: "a", permissions: {
user: "a", password: "a", permissions: {
sub: {
allow: ["foo queue"]
}
}
{
user: "b", permissions: {
user: "b", password: "b", permissions: {
sub: {
# Allow plain subscription foo, but only v1 groups or *.dev queue groups
allow: ["foo", "foo v1", "foo v1.>", "foo *.dev"]