feat(auth): add subscription auth profiles and codex/claude flows
This commit is contained in:
parent
6d8725c9e6
commit
007368d586
13 changed files with 1981 additions and 12 deletions
|
|
@ -6,6 +6,7 @@ use crate::tools::ToolSpec;
|
|||
use async_trait::async_trait;
|
||||
use reqwest::Client;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::path::PathBuf;
|
||||
|
||||
pub struct AnthropicProvider {
|
||||
credential: Option<String>,
|
||||
|
|
@ -614,4 +615,10 @@ mod tests {
|
|||
assert!(json.contains(&format!("{temp}")));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn detects_auth_from_jwt_shape() {
|
||||
let kind = detect_auth_kind("a.b.c", None);
|
||||
assert_eq!(kind, AnthropicAuthKind::Authorization);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue