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

Sorry, I think you may have misunderstood.

1) When the provider is configured with the following

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

it will allow a consumer configured with 

```
  consumer:
   auth: true
   #username: admin
   #password: notadmin
```

to make a call. I think the consumer should be denied in this case as no 
username or password has been set.


However if the consumer is configured as 

```
  consumer:
   auth: true
   username: admin
   password: notadmin
```

it will fail as expected with

```
StatusRpcException: UNAUTHENTICATED : Forbid invoke remote service interface 
org.apache.dubbo.springboot.demo.DemoService method sayHello() from consumer 
/172.28.5.128:44666 to provider 172.28.5.128
```


GitHub link: 
https://github.com/apache/dubbo/discussions/15612#discussioncomment-13998223

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to