(
&mut self,
mut req: tonic::Request<()>,
)
| 68 | |
| 69 | impl tonic::service::Interceptor for EdgeAuthInterceptor { |
| 70 | fn call( |
| 71 | &mut self, |
| 72 | mut req: tonic::Request<()>, |
| 73 | ) -> std::result::Result<tonic::Request<()>, tonic::Status> { |
| 74 | if let Some(ref val) = self.bearer_value { |
| 75 | req.metadata_mut().insert("authorization", val.clone()); |
| 76 | } |
| 77 | if let Some(ref val) = self.header_value { |
| 78 | req.metadata_mut() |
| 79 | .insert("cf-access-jwt-assertion", val.clone()); |
| 80 | } |
| 81 | if let Some(ref val) = self.cookie_value { |
| 82 | req.metadata_mut().insert("cookie", val.clone()); |
| 83 | } |
| 84 | Ok(req) |
| 85 | } |
| 86 | } |
nothing calls this directly
no outgoing calls
no test coverage detected