get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/test/configs/authorization.conf (about)

     1  listen: 127.0.0.1:2442
     2  
     3  authorization {
     4    # Authorizations
     5    include "auths.conf"
     6  
     7    # Just foo for testing
     8    PASS: $2a$04$P/.bd.7unw9Ew7yWJqXsl.f4oNRLQGvadEL2YnqQXbbb.IVQajRdK
     9  
    10    # Users listed with permissions.
    11    users = [
    12      {user: alice, password: $PASS, permissions: $ADMIN}
    13      {user: bob,   password: $PASS, permissions: $REQUESTOR}
    14      {user: bench, password: $PASS, permissions: $BENCH}
    15      {user: joe,   password: $PASS}
    16      {user: ns, password: $PASS, permissions: $NEW_STYLE}
    17      {user: ns-pub, password: $PASS, permissions: $NS_PUB}
    18      {user: bench-deny, password: $PASS, permissions: $BENCH_DENY}
    19      {user: svca, password: $PASS, permissions: $MY_SERVICE}
    20      {user: svcb, password: $PASS, permissions: $MY_STREAM_SERVICE}
    21    ]
    22  }