feat(mcp): Persist OAuth credentials to keyring (#4007)
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user