Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

add new scopes to login (#12383)

Alex Daley8a593862736e
diff --git a/codex-rs/core/src/auth.rs b/codex-rs/core/src/auth.rs
index cca57d5c0f..546d53b79f 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 53b4ad3601..73d6b1e154 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(),