fix: Overrode the default JSON content-type for MCP OAuth so its properly application/x-www-form-urlencoded
This commit is contained in:
+5
-1
@@ -1,4 +1,4 @@
|
||||
use crate::client::oauth::{OAuthProvider, load_oauth_tokens, run_oauth_flow};
|
||||
use crate::client::oauth::{OAuthProvider, TokenRequestFormat, load_oauth_tokens, run_oauth_flow};
|
||||
use crate::config::paths;
|
||||
use anyhow::{Context, Result, anyhow};
|
||||
use chrono::Utc;
|
||||
@@ -63,6 +63,10 @@ impl OAuthProvider for McpOAuthProvider {
|
||||
&self.scopes
|
||||
}
|
||||
|
||||
fn token_request_format(&self) -> TokenRequestFormat {
|
||||
TokenRequestFormat::FormUrlEncoded
|
||||
}
|
||||
|
||||
fn uses_localhost_redirect(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user