lasdf1234 commented on code in PR #11226:
URL: https://github.com/apache/gravitino/pull/11226#discussion_r3309743552


##########
docs/security/how-to-authenticate.md:
##########
@@ -315,6 +354,49 @@ The signature algorithms that Gravitino supports follows:
 | PS384 | RSASSA-PSS using SHA-384 and MGF1 with SHA-384 |
 | PS512 | RSASSA-PSS using SHA-512 and MGF1 with SHA-512 |
 
+### Example: Basic authentication
+
+This example shows how to enable built-in Basic authentication with the 
relational entity store.
+
+**Prerequisites:**
+
+- Gravitino distribution package (includes the idp-basic plugin on the server 
classpath)
+- Relational entity store configured (H2, MySQL, or PostgreSQL)
+
+**Configuration:**
+
+Append the following to `conf/gravitino.conf`:
+
+```text
+gravitino.entity.store = relational
+gravitino.entity.store.relational = JDBCBackend
+gravitino.authenticators = basic
+gravitino.server.rest.extensionPackages = 
org.apache.gravitino.idp.web.rest.feature
+gravitino.authorization.serviceAdmins = admin
+```
+
+On the first startup, if the `admin` service admin does not yet have a 
password in the store,
+set initial passwords before starting the server:
+
+```bash
+export GRAVITINO_INITIAL_ADMIN_PASSWORD='["admin:YourSecureGravitinoPassword"]'

Review Comment:
   Got The format and related logic have been revised.



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