You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "RaigorJiang (via GitHub)" <gi...@apache.org> on 2023/02/14 07:27:55 UTC
[GitHub] [shardingsphere] RaigorJiang opened a new issue, #24155: Authentication method does not match the Authority rule configuration
RaigorJiang opened a new issue, #24155:
URL: https://github.com/apache/shardingsphere/issues/24155
## Bug Report
### Which version of ShardingSphere did you use?
master c236c86d
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
Use user-level `authenticationMethodName` for authentication
### Actual behavior
Only `defaultAuthenticator` can be used
### Reason analyze (If you can)
Take the MySQL protocol as an example:
In `MySQLAuthenticationEngine`, when calling `AuthenticatorFactory.newInstance`, the new `ShardingSphereUser` is always passed in. Compared with the configuration in AuthorityRule, this object lacks `authenticationMethodName`.
<img width="1659" alt="image" src="https://user-images.githubusercontent.com/5668787/218666585-113e4c89-57bc-47b4-a748-d6eac1172dd4.png">
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
- server.yaml
```yaml
authority:
users:
- user: root@%
password: root
authenticationMethodName: native
- user: sharding
password: sharding
authenticators:
native:
type: NATIVE
clear_text:
type: CLEAR_TEXT
defaultAuthenticator: clear_text
```
- login
When logged in as root, the client is required to interact with `CLEAR_TEXT`
--
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero closed issue #24155: Authentication method does not match the Authority rule configuration
Posted by "tristaZero (via GitHub)" <gi...@apache.org>.
tristaZero closed issue #24155: Authentication method does not match the Authority rule configuration
URL: https://github.com/apache/shardingsphere/issues/24155
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org