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

This commit is contained in:
Dark-Alex-17 committed 2026-03-12 13:28:09 -06:00
1 parent e95b1e5f82
commit db4a45c0f6
4 files changed
+204 -48

No files matched your search

+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)]
}