javeme commented on issue #1911:
URL: 
https://github.com/apache/incubator-hugegraph/issues/1911#issuecomment-1173716634

   
感谢反馈,经过分析发现是`StandardAuthenticator`未实现`Authenticator.newSaslNegotiator()`方法导致的,欢迎贡献代码。
   
   具体实现流程可参考:
   ```java
       // StandardAuthenticator.newSaslNegotiator()
       @Override
       public SaslNegotiator newSaslNegotiator(InetAddress remoteAddress) {
           throw new StandardAuthenticator.PlainTextSaslNegotiator();
       }
   ```
   
   
可参考如下实现Tinkerpop的[SimpleAuthenticator.PlainTextSaslAuthenticator](https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/auth/SimpleAuthenticator.java#L118)实现:
   ```java
       // SimpleAuthenticator.PlainTextSaslAuthenticator
       private class PlainTextSaslAuthenticator implements 
Authenticator.SaslNegotiator {
           // ...
       }
   ```
   


-- 
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]

Reply via email to