(
_state: State<Arc<ServerState>>,
Path(name): Path<String>,
Json(req): Json<PluginAuthCallbackRequest>,
)
| 4628 | } |
| 4629 | |
| 4630 | async fn plugin_auth_callback( |
| 4631 | _state: State<Arc<ServerState>>, |
| 4632 | Path(name): Path<String>, |
| 4633 | Json(req): Json<PluginAuthCallbackRequest>, |
| 4634 | ) -> Result<Json<serde_json::Value>> { |
| 4635 | let bridge = get_auth_bridge(&name).await?; |
| 4636 | |
| 4637 | let result = bridge |
| 4638 | .callback(req.code.as_deref()) |
| 4639 | .await |
| 4640 | .map_err(|e| ApiError::BadRequest(e.to_string()))?; |
| 4641 | |
| 4642 | Ok(Json(result)) |
| 4643 | } |
| 4644 | |
| 4645 | #[derive(Debug, Serialize)] |
| 4646 | struct PluginAuthLoadResponse { |
nothing calls this directly
no test coverage detected