refactor: Made the oauth module more generic so it can support loopback OAuth (not just manual)
This commit is contained in:
1 parent
e95b1e5f82
commit
db4a45c0f6
4 files changed
+204
-48
No files matched your search
@@ -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)]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user