GitHub user mitpjones edited a discussion: [Q/A] (Dubbo version 3.3.1) Where 
can I find an example of using the Auth plugin?

### Pre-check

- [X] I am sure that all the content I provide is in English.


### Apache Dubbo Component

Java SDK (apache/dubbo)

### Details

Where can I find an example of using the [Auth 
plugin](https://github.com/apache/dubbo/tree/3.3/dubbo-plugin/dubbo-auth) ?

I can not find any documentation that describes how to use/configure the plugin 
apart from 
[https://dubbo.apache.org/en/overview/mannual/java-sdk/tasks/security/auth/](https://dubbo.apache.org/en/overview/mannual/java-sdk/tasks/security/auth/)

I have tried to configure the BasicAuthenticator with partial success(1) and 
also the AccessKeyAuthenticator with little success. 

I can also see there there is a package called org.apache.dubbo.auth.v1alpha1 
which makes me think that some of the functionality may not yet be complete?




1) If the producer is configured with 

```
  provider:   
    auth: true   
    authenticator: basic   
    username: admin     
    password: admin
```   

then the service IS still accessible if the consumer is configured as

```
  consumer:   
    auth: true   
```   
maybe a bug?

However will be denied if configured and the username/password is different e.g.

```
  consumer:   
    auth: true   
    authenticator: basic   
    username: xyz     
    password: xyz
```   




Thanks,

Tim






### Code of Conduct

- [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)


GitHub link: https://github.com/apache/dubbo/discussions/15612

----
This is an automatically sent email for notifications@dubbo.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@dubbo.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to