{"record":{"id":"917b7d0a04c26cc9","repo":"zeroclaw-labs/zeroclaw","slug":"unsupported-auth-flow-other","errorCode":null,"errorMessage":"Unsupported auth flow: {other}","messagePattern":"Unsupported auth flow: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-tools/src/microsoft365/auth.rs","lineNumber":132,"sourceCode":"                    Err(e) => {\n                        ::zeroclaw_log::record!(\n                            DEBUG,\n                            ::zeroclaw_log::Event::new(\n                                module_path!(),\n                                ::zeroclaw_log::Action::Note\n                            )\n                            .with_attrs(::serde_json::json!({\"error\": format!(\"{}\", e)})),\n                            \"ms365: refresh token failed, re-authenticating\"\n                        );\n                    }\n                }\n            }\n        }\n\n        match self.config.auth_flow.as_str() {\n            \"client_credentials\" => self.client_credentials_flow(client).await,\n            \"device_code\" => self.device_code_flow(client).await,\n            other => anyhow::bail!(\"Unsupported auth flow: {other}\"),\n        }\n    }\n\n    async fn client_credentials_flow(\n        &self,\n        client: &reqwest::Client,\n    ) -> anyhow::Result<CachedTokenState> {\n        let client_secret = self\n            .config\n            .client_secret\n            .as_deref()\n            .context(\"client_credentials flow requires client_secret\")?;\n\n        let token_url = format!(\n            \"https://login.microsoftonline.com/{}/oauth2/v2.0/token\",\n            self.config.tenant_id\n        );\n","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-tools/src/microsoft365/auth.rs#L114-L150","documentation":"Error \"Unsupported auth flow: {other}\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-tools/src/microsoft365/auth.rs:132 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported auth flow (client_credentials or device_code)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}