joao-r-reis commented on code in PR #1801:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1801#discussion_r1831140543


##########
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:
   Maybe a comment on the type itself too.
   
   ```
   // PasswordAuthenticator can be configured with an "allow list" of 
authenticators (can be set to nil or empty to allow all)
   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]

Reply via email to