Authentication

It is used to verify the authentication to log in ShardingSphere-Proxy, which must use correct user name and password after the configuration of them.

  1. rules:
  2. - !AUTHORITY
  3. users:
  4. - root@localhost:root # <username>@<hostname>:<password>
  5. - sharding@:sharding
  6. provider:
  7. type: ALL_PRIVILEGES_PERMITTED

If the hostname is % or empty, it means no restrict to the user’s host.

The type of the provider must be explicitly specified. Refer to 6.11 Proxy for more implementations.