Merge remote-tracking branch 'origin/feat/comfy-cloud-adapter' into _merge_test
# Conflicts: # src/routes/admin/compat.rs # src/routes/admin/downstream_keys.rs # src/routes/auth.rs # src/routes/comfyui/mod.rs # src/routes/comfyui_agent.rs # src/routes/events.rs # src/routes/money_printer.rs # src/routes/oauth.rs # src/routes/proxy/mod.rs # src/routes/video_agent_legacy.rs
This commit is contained in:
@@ -60,10 +60,9 @@ async fn check_auth(state: &AppState, headers: &HeaderMap) -> Result<(), AppErro
|
||||
// Downstream API key
|
||||
if auth.starts_with("sk-") {
|
||||
let proxy_token = state.runtime_proxy_token();
|
||||
let result =
|
||||
authorize_downstream_token(auth, &state.db, Some(&proxy_token))
|
||||
.await
|
||||
.map_err(AppError::Unauthorized)?;
|
||||
let result = authorize_downstream_token(auth, &state.db, Some(&proxy_token))
|
||||
.await
|
||||
.map_err(AppError::Unauthorized)?;
|
||||
|
||||
match result {
|
||||
DownstreamAuthResult::Managed { key, .. } => {
|
||||
|
||||
Reference in New Issue
Block a user