Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(security): add openai oauth flow tests

Steven Enamakel354cb3036ef8
diff --git a/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests.rs b/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests.rs
index 37d2d7f9e6..147aff0c5e 100644
--- a/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests.rs
@@ -1,3 +1,4 @@
+use super::pending;
use super::store::persist_openai_oauth_token;
use super::{
complete_openai_oauth, disconnect_openai_oauth, openai_oauth_status, start_openai_oauth,
@@ -58,7 +59,7 @@ fn test_oauth_config(token_url: &str) -> OAuthConfig {
scopes: vec!["scope-a".to_string(), "scope-b".to_string()],
extra_authorize_params: vec![("prompt".to_string(), "consent".to_string())],
state_equals_verifier: false,
- pending_filename: "openai-oauth-pending.json".to_string(),
+ pending_secret: "openai-oauth-pending".to_string(),
}
}