ory / ory/sdk

Rust sdk: Basic/oauth/bearer/api_key auth unused

Open
#156 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
178
Forks
96
Avg merge
6d 23h
Merged PRs (30d)
3

Description

Preflight checklist
Describe the bug

It seems like the auth related fields are completely unused. Is that expected?

Reproducing the bug

https://github.com/ory/sdk/blob/96841c725b680744240710d8e1aa78dd42a5e24c/clients/keto/rust/src/apis/configuration.rs#L19

Relevant log output

No response

Relevant configuration

No response

Version

HEAD

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

A workaround is to specify the auth tokens as default headers while initialing the reqwest client.

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 at clients/keto/rust/src/apis/configuration.rs line 19 and inspect how the authentication fields are handled. Compare this with the reported workaround of setting auth tokens as default headers on the reqwest client. Done means determining the expected behavior for these fields and documenting or correcting it with validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.