imbajin commented on code in PR #316: URL: https://github.com/apache/incubator-hugegraph-doc/pull/316#discussion_r1439212540
########## content/cn/docs/config/config-authentication.md: ########## @@ -67,3 +67,25 @@ gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy ### 自定义用户认证系统 如果需要支持更加灵活的用户系统,可自定义 authenticator 进行扩展,自定义 authenticator 实现接口`org.apache.hugegraph.auth.HugeAuthenticator`即可,然后修改配置文件中`authenticator`配置项指向该实现。 + + +### 基于鉴权模式启动 + +在鉴权配置完成后,对于非 docker 部署模式,首次执行 init-store.sh 时支持在命令行输入 admin 账户密码。 + +如果基于 docker 镜像部署或者已经初始化 HugeGraph 并需要转换为鉴权模式,需要删除相关图数据并重新启动 HugeGraph,若图已有业务数据,暂时无法直接转换鉴权模式 (对于该功能的改进/支持将在下个版本中发布)。 Review Comment: ```suggestion 如果基于 docker 镜像部署或者已经初始化 HugeGraph 并需要转换为鉴权模式,需要删除相关图数据并重新启动 HugeGraph,若图已有业务数据,暂时**无法直接转换**鉴权模式 (对于该功能的改进/支持将在下个版本中发布)。 ``` ########## content/en/docs/config/config-authentication.md: ########## @@ -74,3 +74,27 @@ For detailed API calls and explanations regarding permissions, please refer to t If you need to support a more flexible user system, you can customize the authenticator for extension. Simply implement the `org.apache.hugegraph.auth.HugeAuthenticator` interface with your custom authenticator, and then modify the `authenticator` configuration item in the configuration file to point to your implementation. + +### Switching authentication mode + +After the authentication configuration is completed, for non Docker deployment modes, +it is supported to enter the admin account password on the command line when executing init store. sh for the first time. + +If deployed based on Docker image or if HugeGraph has already been initialized and needs to be converted to authentication mode, +relevant graph data needs to be deleted and HugeGraph needs to be restarted. If there is already business data in the diagram, +it is temporarily not possible to directly convert the authentication mode (improvements/support for this feature will be released in the next version). Review Comment: ```suggestion it is temporarily **not possible** to directly convert the authentication mode (improvements/support for this feature will be released in the next version). ``` ########## content/en/docs/config/config-authentication.md: ########## @@ -74,3 +74,27 @@ For detailed API calls and explanations regarding permissions, please refer to t If you need to support a more flexible user system, you can customize the authenticator for extension. Simply implement the `org.apache.hugegraph.auth.HugeAuthenticator` interface with your custom authenticator, and then modify the `authenticator` configuration item in the configuration file to point to your implementation. + +### Switching authentication mode + +After the authentication configuration is completed, for non Docker deployment modes, +it is supported to enter the admin account password on the command line when executing init store. sh for the first time. Review Comment: ```suggestion After the authentication configuration completed, enter the **admin password** on the **command line** when executing `init store. sh` for the first time. (For non-Docker mode) ``` ########## content/cn/docs/config/config-authentication.md: ########## @@ -67,3 +67,25 @@ gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy ### 自定义用户认证系统 如果需要支持更加灵活的用户系统,可自定义 authenticator 进行扩展,自定义 authenticator 实现接口`org.apache.hugegraph.auth.HugeAuthenticator`即可,然后修改配置文件中`authenticator`配置项指向该实现。 + + +### 基于鉴权模式启动 + +在鉴权配置完成后,对于非 docker 部署模式,首次执行 init-store.sh 时支持在命令行输入 admin 账户密码。 Review Comment: ```suggestion 在鉴权配置完成后,需在首次执行 `init-store.sh` 时命令行中输入 `admin` 密码 (非 docker 部署模式下) ``` -- 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]
