refactor: Made the oauth module more generic so it can support loopback OAuth (not just manual)

This commit is contained in:
2026-03-12 13:28:09 -06:00
parent 73cbe16ec1
commit 063e198f96
4 changed files with 204 additions and 48 deletions
+4
View File
@@ -29,6 +29,10 @@ impl OAuthProvider for ClaudeOAuthProvider {
"org:create_api_key user:profile user:inference"
}
fn extra_authorize_params(&self) -> Vec<(&str, &str)> {
vec![("code", "true")]
}
fn extra_token_headers(&self) -> Vec<(&str, &str)> {
vec![("anthropic-beta", BETA_HEADER)]
}