diff --git a/codex-rs/core/src/auth.rs b/codex-rs/core/src/auth.rs index cca57d5c0f76..546d53b79f68 100644 --- a/codex-rs/core/src/auth.rs +++ b/codex-rs/core/src/auth.rs @@ -626,7 +626,6 @@ async fn request_chatgpt_token_refresh( client_id: CLIENT_ID, grant_type: "refresh_token", refresh_token, - scope: "openid profile email", }; let endpoint = refresh_token_endpoint(); @@ -722,7 +721,6 @@ struct RefreshRequest { client_id: &'static str, grant_type: &'static str, refresh_token: String, - scope: &'static str, } #[derive(Deserialize, Clone)] diff --git a/codex-rs/login/src/server.rs b/codex-rs/login/src/server.rs index 53b4ad360129..73d6b1e154e5 100644 --- a/codex-rs/login/src/server.rs +++ b/codex-rs/login/src/server.rs @@ -431,7 +431,8 @@ fn build_authorize_url( ("redirect_uri".to_string(), redirect_uri.to_string()), ( "scope".to_string(), - "openid profile email offline_access".to_string(), + "openid profile email offline_access api.connectors.read api.connectors.invoke" + .to_string(), ), ( "code_challenge".to_string(),