Basic auth is never used
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 16
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
If you specify the basic_auth in the config, it is not used when sending the requests.
Reproducing the bug
- Create a configuration using basic auth
let admin_client = Configuration {
base_path: "http://localhost:4434".to_string(),
basic_auth: Some((
"user".to_string(),
Some("password".to_string()),
)),
..Default::default()
};
- Try to send request, no
Authorizationheader is present
Looking at the code, the logic just is not there. You are likely missing a setting in the openapi generator.
Relevant log output
No response
Relevant configuration
No response
Version
v1.1.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by searching the Rust SDK's Configuration and request-sending code for basic_auth, then inspect the OpenAPI generator settings mentioned in the report. Reproduce the request with the provided configuration and verify that completed requests include the expected Authorization header.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100