mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
ADR-0005 JWT Authentication Extensibility
Constrain our server auth nonce selection with a no-op change for the current server code-base, in a way which we guarantee and expect clients to check for, to buy us future proofing.
This commit is contained in:
@@ -37,7 +37,8 @@ func (s *Server) nonceRequired() bool {
|
||||
}
|
||||
|
||||
// Generate a nonce for INFO challenge.
|
||||
// Assumes server lock is held
|
||||
// Assumes server lock is held.
|
||||
// Per ADR-0005, must not start with 0x7B (`{`).
|
||||
func (s *Server) generateNonce(n []byte) {
|
||||
var raw [nonceRawLen]byte
|
||||
data := raw[:]
|
||||
|
||||
Reference in New Issue
Block a user