Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sfc-gh-bnisco
Copy link
Collaborator

@sfc-gh-bnisco sfc-gh-bnisco commented Nov 25, 2025

Describe your changes

Improved the error message when a provider is missing for an OAuth callback. Changed the log level from error to warning and added more context to the message, explaining that this often indicates a stale or replayed callback (e.g., from browser back/forward navigation).

GitHub Issue Link (if applicable)

Fixes #13101

Testing Plan

  • No additional added as this is just a log message improvement

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@snyk-io
Copy link
Contributor

snyk-io bot commented Nov 25, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@sfc-gh-bnisco sfc-gh-bnisco added the change:bugfix PR contains bug fix implementation label Nov 25, 2025 — with Graphite App
@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-13127/streamlit-1.51.0-py3-none-any.whl
📦 @streamlit/component-v2-lib Download from artifacts
🕹️ Preview app pr-13127.streamlit.app (☁️ Deploy here if not accessible)

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sfc-gh-bnisco sfc-gh-bnisco added impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR labels Nov 25, 2025 — with Graphite App
@sfc-gh-bnisco sfc-gh-bnisco marked this pull request as ready for review November 26, 2025 00:20
Copilot AI review requested due to automatic review settings November 26, 2025 00:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves error handling for OAuth callback scenarios by reclassifying a log message from error to warning severity. The change addresses situations where OAuth callbacks are received without a valid provider, which typically occurs from stale or replayed requests (e.g., browser back/forward navigation) rather than genuine errors.

Key Changes

  • Changed log severity from error to warning for missing OAuth provider scenarios
  • Enhanced the log message to provide helpful context about the likely cause (stale/replayed callbacks)
  • Added a reference comment linking to the related GitHub issue #13101

Copy link
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sfc-gh-bnisco sfc-gh-bnisco merged commit d791f7e into develop Nov 27, 2025
59 of 62 checks passed
@sfc-gh-bnisco sfc-gh-bnisco deleted the 11-25-_fix_reclassify_auth_callback_error_-_warning branch November 27, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Error, missing provider for callback." - phantom error log on st.logout()

3 participants