zeroclaw-labs/zeroclaw · error · anyhow::Error
Unsupported auth flow: {other}
Error message
Unsupported auth flow: {other} What it means
Error "Unsupported auth flow: {other}" thrown in zeroclaw-labs/zeroclaw.
Source
Thrown at crates/zeroclaw-tools/src/microsoft365/auth.rs:132
Err(e) => {
::zeroclaw_log::record!(
DEBUG,
::zeroclaw_log::Event::new(
module_path!(),
::zeroclaw_log::Action::Note
)
.with_attrs(::serde_json::json!({"error": format!("{}", e)})),
"ms365: refresh token failed, re-authenticating"
);
}
}
}
}
match self.config.auth_flow.as_str() {
"client_credentials" => self.client_credentials_flow(client).await,
"device_code" => self.device_code_flow(client).await,
other => anyhow::bail!("Unsupported auth flow: {other}"),
}
}
async fn client_credentials_flow(
&self,
client: &reqwest::Client,
) -> anyhow::Result<CachedTokenState> {
let client_secret = self
.config
.client_secret
.as_deref()
.context("client_credentials flow requires client_secret")?;
let token_url = format!(
"https://login.microsoftonline.com/{}/oauth2/v2.0/token",
self.config.tenant_id
);
View on GitHub (pinned to 88bb9c8533)
Solutions
- Use a supported auth flow (client_credentials or device_code).
When it happens
Trigger: Thrown at crates/zeroclaw-tools/src/microsoft365/auth.rs:132 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/917b7d0a04c26cc9.
Report an issue: GitHub.