You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "mitpjones (via GitHub)" <gi...@apache.org> on 2025/08/11 03:11:50 UTC
[I] [Bug] Basic authentication does not work when when sent requests using dubbo protocol [dubbo]
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: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] Basic authentication does not work when when sending requests using dubbo protocol [dubbo]
Posted by "tysoncung (via GitHub)" <gi...@apache.org>.
tysoncung commented on issue #15630:
URL: https://github.com/apache/dubbo/issues/15630#issuecomment-3430705196
This feature would add significant value! I'm excited to help implement this. 💡
## 📋 Implementation Plan
**Requirement Clarification:**
- What's the primary use case and user story?
- What are the acceptance criteria for "done"?
- Any performance or scalability requirements?
- Backward compatibility considerations?
**Technical Design:**
1. **Architecture**: How should this integrate with existing code?
2. **API Design**: What should the interface/API look like?
3. **Data Model**: Any new data structures or schema changes?
4. **Testing Strategy**: Unit, integration, and E2E test approach
**Development Approach:**
- Break down into manageable milestones
- Iterative development with early feedback
- Comprehensive test coverage
- Documentation and examples
**My Expertise:**
I've built similar features in production and can contribute:
- System design and architecture
- Clean, maintainable implementation
- Comprehensive test suite
- Documentation and usage examples
- Performance optimization
Would you like me to:
1. Draft a detailed technical proposal?
2. Create a proof-of-concept?
3. Start implementation?
Happy to collaborate on this! Let me know how I can help. 🎯
--
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@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org