WIP fase 2b-2: rimosso login ChatGPT/OAuth/device code, agent/workload identity, backend-client; resta solo chiave API (test non tutti verdi)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1997,20 +1997,8 @@ async fn mount_result_metadata_app(
|
||||
Ok(apps_server)
|
||||
}
|
||||
|
||||
fn result_metadata_apps_builder(base_url: String, account_email: &str) -> TestCodexBuilder {
|
||||
let payload = base64::engine::general_purpose::URL_SAFE_NO_PAD.encode(
|
||||
serde_json::json!({
|
||||
"email": account_email,
|
||||
"https://api.openai.com/auth": { "chatgpt_account_id": "account_id" },
|
||||
})
|
||||
.to_string(),
|
||||
);
|
||||
let auth = CodexAuth::from_external_chatgpt_tokens(
|
||||
&format!("e30.{payload}.signature"),
|
||||
"account_id",
|
||||
/*chatgpt_plan_type*/ None,
|
||||
)
|
||||
.unwrap();
|
||||
fn result_metadata_apps_builder(base_url: String, _account_email: &str) -> TestCodexBuilder {
|
||||
let auth = CodexAuth::from_api_key("Test API Key");
|
||||
search_capable_apps_builder(base_url)
|
||||
.with_auth(auth)
|
||||
.with_config(|config| {
|
||||
@@ -3091,7 +3079,7 @@ if (!tool) {
|
||||
|
||||
let apps_base_url = apps_server.chatgpt_base_url.clone();
|
||||
let mut builder = test_codex()
|
||||
.with_auth(CodexAuth::create_dummy_chatgpt_auth_for_testing())
|
||||
.with_auth(CodexAuth::from_api_key("Test API Key"))
|
||||
.with_config(move |config| {
|
||||
config
|
||||
.features
|
||||
|
||||
Reference in New Issue
Block a user