mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Fix SASL again
This commit is contained in:
parent
66d32c6f3f
commit
9ba4ebb803
@ -247,15 +247,13 @@ class Client extends EventEmitter {
|
||||
_handleAuthSASL(msg) {
|
||||
this._checkPgPass(() => {
|
||||
this.saslSession = sasl.startSession(msg.mechanisms)
|
||||
const con = this.connection
|
||||
con.sendSASLInitialResponseMessage(this.saslSession.mechanism, this.saslSession.response)
|
||||
this.connection.sendSASLInitialResponseMessage(this.saslSession.mechanism, this.saslSession.response)
|
||||
})
|
||||
}
|
||||
|
||||
_handleAuthSASLContinue(msg) {
|
||||
const { saslSession } = this
|
||||
sasl.continueSession(saslSession, this.password, msg.data)
|
||||
con.sendSCRAMClientFinalMessage(saslSession.response)
|
||||
sasl.continueSession(this.saslSession, this.password, msg.data)
|
||||
this.connection.sendSCRAMClientFinalMessage(this.saslSession.response)
|
||||
}
|
||||
|
||||
_handleAuthSASLFinal(msg) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user