Comments (3)
Alright, thanks
from zitadel-rust.
Ah, I found out that headers seem to be managed by tonic
's Request
s and are named metadata
instead of headers.
So if I understand correctly, I can create a tonic request myself and set the org ID header myself. Is this the intended way to do the requests?
from zitadel-rust.
Hey @FlixCoder
gRPC "headers" in general are called "metadata". You will stumble across that term in many implementations of gRPC.
Yes, you're right. You can create the request directly by yourself and send it via the gRPC client call:
let r = Request::new(HelloRequest {
name: "Bob".into(),
});
client.get_my_user(r).await?.into_inner();
then you have the chance to set the metadata you need.
from zitadel-rust.
Related Issues (17)
- RUSTSEC-2020-0159: Potential segfault in `localtime_r` invocations HOT 1
- RUSTSEC-2020-0071: Potential segfault in the time crate HOT 1
- Try to create a fix or feat commit when zitadel repo updates HOT 1
- Add interceptor that updates the service account key after it expires HOT 1
- The automated release is failing 🚨 HOT 1
- Undocumented protobuf dependency HOT 2
- Support for Additional Claims in Introspection HOT 2
- Credentials and Reqwest SSL Implementation(s) HOT 1
- Actix support? HOT 4
- RUSTSEC-2023-0071: Marvin Attack: potential key recovery through timing sidechannels
- Update axum to 0.7 HOT 2
- Optional headers in functions HOT 6
- Implement Clone for ChainedInterceptor
- Compile error in api/client.rs HOT 1
- Feature Request: Optional Support for Rocket-Okapi Integration in IntrospectedUser HOT 6
- Feature Request: Enhanced Cookie Authentication Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zitadel-rust.