mitpjones opened a new issue, #15630: URL: https://github.com/apache/dubbo/issues/15630
### Pre-check - [x] I am sure that all the content I provide is in English. ### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues. ### Apache Dubbo Component Java SDK (apache/dubbo) ### Dubbo Version 3.3.1 ### Steps to reproduce this issue Basic authentication does not work when when sent requests using dubbo protocol (see also [)](https://github.com/apache/dubbo/discussions/15612#discussioncomment-14067396) I am using the apache-dubbo/example/dubbo-samples/1-basic/dubbo-samples-spring-boot example After pasting ``` provider: auth: true username: admin password: notadmin authenticator: basic ``` in to the Provider's application.yml. If I call curl \ --header "Content-Type: application/json" \ --data '["Dubbo"]' \ http://localhost:50052/org.apache.dubbo.springboot.demo.DemoService/sayHello/ I get the expected ``` {"message":"Forbid invoke remote service interface org.apache.dubbo.springboot.demo.DemoService method sayHello() from consumer /127.0.0.1:39596 to provider 172.28.100.101","status":"401"} ``` However if I start the Consumer ``` mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.springboot.demo.consumer.ConsumerApplication" ``` I get ``` [INFO] Scanning for projects... [INFO] [INFO] --------< org.apache.dubbo:dubbo-samples-spring-boot-consumer >--------- [INFO] Building dubbo-samples-spring-boot-consumer 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] . . . 08:52:38.069 |-INFO [org.apache.dubbo.springboot.demo.consumer.ConsumerApplication.main()] ngboot.demo.consumer.ConsumerApplication:56 -| Started ConsumerApplication in 2.455 seconds (process running for 4.112) Receive result ======> Hello world 08:52:38.130 |-INFO [pool-2-thread-1] .event.AwaitingNonWebApplicationListener:179 -| [Dubbo] Current Spring Boot Application is await... Mon Aug 11 08:52:39 NZST 2025 Receive result ======> Hello world Mon Aug 11 08:52:40 NZST 2025 Receive result ======> Hello world ``` ### What you expected to happen The Dubbo consumer should be forbidden, see also [](https://github.com/apache/dubbo/discussions/15612#discussioncomment-14067396) ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
