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 crate::config::paths;
|
||||||
use anyhow::{Context, Result, anyhow};
|
use anyhow::{Context, Result, anyhow};
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
@@ -63,6 +63,10 @@ impl OAuthProvider for McpOAuthProvider {
|
|||||||
&self.scopes
|
&self.scopes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn token_request_format(&self) -> TokenRequestFormat {
|
||||||
|
TokenRequestFormat::FormUrlEncoded
|
||||||
|
}
|
||||||
|
|
||||||
fn uses_localhost_redirect(&self) -> bool {
|
fn uses_localhost_redirect(&self) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user