Skip to content

Conversation

rakesh-oai
Copy link
Contributor

External (non-OpenAI) Pull Request Requirements

Before opening this Pull Request, please read the dedicated "Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md

If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes.

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 416 to 420
let client = reqwest::Client::new();
let url = format!("{issuer}/oauth/token");
eprintln!(
"SRK_SBG: url: {url}, redirect_uri: {redirect_uri}, client_id: {client_id}, code: {code}, code_verifier: {}",
pkce.code_verifier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove logging of authorization code and PKCE verifier

During token exchange the new eprintln! logs the complete authorization code and the PKCE code_verifier. Both values can be used by anyone with access to the logs to mint tokens for the user, so printing them is a security regression. The login helper should avoid logging these secrets or at minimum hide them behind a debug-only flag.

Useful? React with 👍 / 👎.

@rakesh-oai rakesh-oai force-pushed the rakesh/FixCallbackUrlBugs branch 2 times, most recently from 70bb62a to 20d9dac Compare October 1, 2025 00:55
@rakesh-oai rakesh-oai changed the title Fix Callback URL Fix Callback URL for staging and prod environments Oct 1, 2025
@rakesh-oai rakesh-oai force-pushed the rakesh/FixCallbackUrlBugs branch from 20d9dac to ee453b3 Compare October 1, 2025 01:19
@rakesh-oai rakesh-oai enabled auto-merge (squash) October 1, 2025 01:20
@rakesh-oai rakesh-oai merged commit 349ef7e into main Oct 1, 2025
20 checks passed
@rakesh-oai rakesh-oai deleted the rakesh/FixCallbackUrlBugs branch October 1, 2025 02:57
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants