This page has moved to https://docs.nats.io.
Click here if you are not redirected.
The NATS server provides various ways of authenticating clients:
- Token Authentication
- Username/Password credentials
- TLS Certificate
- NKEY with Challenge
Authentication deals with allowing a NATS client to connect to the server.
Except for JWT authentication, authentication and authorization are configured in the
authorization section of the configuration.
authorization block provides authentication configuration as well as authorization:
|Specifies a global token that can be used to authenticate to the server (exclusive of user and password)
|Specifies a single global user name for clients to the server (exclusive of token)
|Specifies a single global password for clients to the server (exclusive of
|A list of user configuration maps
|Maximum number of seconds to wait for client authentication
For multiple username and password credentials, specify a
user configuration map specifies credentials and permissions options for a single user:
|username for client authentication
|password for the user entry
|public nkey identifying an user
|permissions map configuring subjects accessible to the user