joao-r-reis commented on code in PR #1801:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1801#discussion_r1831137264
##########
doc.go:
##########
@@ -81,6 +81,16 @@
// }
// defer session.Close()
//
+// By default, PasswordAuthenticator will attempt to authenticate regardless
of what implementation the server returns
+// in its AUTHENTICATE message as its authenticator, (e.g.
org.apache.cassandra.auth.PasswordAuthenticator). If you
+// wish to restrict this you may use
PasswordAuthenticator.AllowedAuthenticators:
Review Comment:
I was thinking about a comment on the type itself ( `conn.go` ) so that this
information shows up on the docs section for the type (in pkg.go.dev) and when
using an IDE:
```
type PasswordAuthenticator struct {
Username string
Password string
// Setting this to nil or empty will allow any authenticator
provided by the server
AllowedAuthenticators []string
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]