Skip to content

Commit 8a59386

Browse files
add new scopes to login (openai#12383)
Validated login + refresh flows. Removing scopes from the refresh request until we have upgrade flow in place. Confirmed that tokens refresh with existing scopes.
1 parent f72ab43 commit 8a59386

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

codex-rs/core/src/auth.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ async fn request_chatgpt_token_refresh(
626626
client_id: CLIENT_ID,
627627
grant_type: "refresh_token",
628628
refresh_token,
629-
scope: "openid profile email",
630629
};
631630

632631
let endpoint = refresh_token_endpoint();
@@ -722,7 +721,6 @@ struct RefreshRequest {
722721
client_id: &'static str,
723722
grant_type: &'static str,
724723
refresh_token: String,
725-
scope: &'static str,
726724
}
727725

728726
#[derive(Deserialize, Clone)]

codex-rs/login/src/server.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ fn build_authorize_url(
431431
("redirect_uri".to_string(), redirect_uri.to_string()),
432432
(
433433
"scope".to_string(),
434-
"openid profile email offline_access".to_string(),
434+
"openid profile email offline_access api.connectors.read api.connectors.invoke"
435+
.to_string(),
435436
),
436437
(
437438
"code_challenge".to_string(),

0 commit comments

Comments
 (0)