1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00
nats.docs/nats_server/auth_timeout.md
Alberto Ricart 79c785f473 wip
2019-05-16 17:50:26 -05:00

19 lines
683 B
Markdown

# Authentication Timeout
Much like the [`tls timeout` option](/nats_server/tls.md#tls-timeout), authentication can specify a `timeout` value.
If a client doesn't authenticate to the server within the specified time, the server disconnects the server to prevent abuses.
Timeouts are specified in seconds (and can be fractional).
As with TLS timeouts, long timeouts can be an opportunity for abuse. If setting the authentication timeout, it is important to note. that it should be longer than the `tls timeout` option, as the authentication timeout includes the TLS upgrade time.
```
authorization: {
timeout: 3
users: [
{user: a, password b},
{user: b, password a}
]
}
```