ory / ory/kratos-client-rust

Basic auth is never used

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
16
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
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
  1. 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()
        };
  1. Try to send request, no Authorization header 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.