Skip to content

Basic auth is never used #6

@Sytten

Description

@Sytten

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions