Rust SDK doesn't allow to access cookies of a request
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 178
- Forks
- 96
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
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.
Describe the bug
The rust SDK returns only the flow object and therefore it's not possible to access cookies from the response to forward them.
As example: The JS SDK returns a AxiosPromise which contains the complete response. The rust SDK returns only the flow object.
Therefore it's not possible to forward the CSRF cookie to the client if I call create_browser_login_flow as example.
Reproducing the bug
Call the create_browser_login_flow of the rust crate.
Version
1.0.0
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Docker
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 with the Rust crate's create_browser_login_flow method and reproduce the request described in the issue. Trace how its response is returned, then verify that callers can access response cookies while still receiving the flow object.
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
- Mostly clear
- Newbie friendliness
- 35/100