feat(mcp): Persist OAuth credentials to keyring (#4007)

This commit is contained in:
Jack Amadeo
2025-08-15 14:01:35 -04:00
committed by GitHub
parent 6e022a974a
commit a78939654d
6 changed files with 100 additions and 4 deletions
+3 -1
View File
@@ -285,7 +285,9 @@ impl ExtensionManager {
.await;
let client = if let Err(e) = client_res {
// make an attempt at oauth, but failing that, return the original error,
// because this might not have been an auth error at all
// because this might not have been an auth error at all.
// TODO: when rmcp supports it, we should trigger this flow on 401s with
// WWW-Authenticate headers, not just any init error
let am = match oauth_flow(uri, name).await {
Ok(am) => am,
Err(_) => return Err(e.into()),