Hi! I am trying to use `ory-kratos-client` within ...
# talk-kratos
b
Hi! I am trying to use
ory-kratos-client
within Axum framework (Rust). The closest to an example I found so far is this: https://github.com/Urie96/hackbook-rust/blob/main/src/handlers.rs which is an integration for Actix. Couple of questions: • The ‘to_session cookie thing’ is just done on the login endpoint, is that correct or should it be on all authorized endpoints? • Other comments maybe on this implementation, looks ok? • Do you have an example for Axum maybe?
m
Hey Sietse, please use the `ory-client`https://crates.io/crates/ory-client kratos-client also works, but well migrate to ory-client over time. just one SDK for all ory services. We dont have a Rust example that I am aware of, always looking for some for ory/examples - if you find anything feel free to contribute 🙏 Im new to Rust so I cant comment on the implementation 🙈
b
Hi Vincent, thanks. Good to know I have to use ory-client instead. When I get stuck I’ll probably use stackoverflow then…!
No github repo for
ory-client
?
m
The source can be found in the ory/sdk repo: https://github.com/ory/sdk/tree/master/clients/client
163 Views