Title: fix(credentials): bind OAuth reconnect drafts to exact flows · Issue #6716 · simstudioai/sim · GitHub
Open Graph Title: fix(credentials): bind OAuth reconnect drafts to exact flows · Issue #6716 · simstudioai/sim
X Title: fix(credentials): bind OAuth reconnect drafts to exact flows · Issue #6716 · simstudioai/sim
Description: Summary OAuth reconnect drafts are selected by broad ambient context rather than one exact protected flow. Tighten the shared credential-draft lifecycle so concurrent and cross-provider OAuth flows cannot consume or mutate the wrong draf...
Open Graph Description: Summary OAuth reconnect drafts are selected by broad ambient context rather than one exact protected flow. Tighten the shared credential-draft lifecycle so concurrent and cross-provider OAuth flows...
X Description: Summary OAuth reconnect drafts are selected by broad ambient context rather than one exact protected flow. Tighten the shared credential-draft lifecycle so concurrent and cross-provider OAuth flows...
Opengraph URL: https://github.com/simstudioai/sim/issues/6716
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(credentials): bind OAuth reconnect drafts to exact flows","articleBody":"## Summary\n\nOAuth reconnect drafts are selected by broad ambient context rather than one exact protected flow. Tighten the shared credential-draft lifecycle so concurrent and cross-provider OAuth flows cannot consume or mutate the wrong draft.\n\n## Required changes\n\n- validate reconnect target credential type, provider, workspace, and provider-specific environment at draft creation\n- return the draft ID and bind it into protected OAuth state\n- process the exact draft row identified by that protected state during callback\n- repeat type, provider, workspace, and environment checks before the final credential mutation\n- preserve ordinary new-credential and legacy OAuth behavior where the same invariants hold\n\n## Tests\n\n- concurrent OAuth tabs in one workspace\n- concurrent OAuth flows across workspaces\n- cross-provider reconnect attempts\n- wrong credential type and wrong target credential\n- provider-specific environment mismatch\n- exact-flow success and replay/expired-draft rejection\n\n## Context\n\nThis is a platform-wide credential integrity change affecting generic OAuth and custom OAuth flows. It is intentionally separate from Dynamics 365 CRM PR #6714, which adds UI-level environment binding but must not absorb shared draft infrastructure changes.\n","author":{"url":"https://github.com/BillLeoutsakosvl346","@type":"Person","name":"BillLeoutsakosvl346"},"datePublished":"2026-08-14T23:51:49Z","url":"https://github.com/simstudioai/sim/issues/6716"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0be3c4a9-de87-14b4-937e-f2bfeebdecc1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A88:ECC72:30E43D:4536FB:6AFB7136 |
| html-safe-nonce | 4556c014914564e59b5dcab6f059e4dbe8d2b1a66e8c091f1b4f48ee1da173d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTg4OkVDQzcyOjMwRTQzRDo0NTM2RkI6NkFGQjcxMzYiLCJ2aXNpdG9yX2lkIjoiMjMxNzc5NjkxMDAxNTY3MjYzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 58a0da53c4eda701a25887af8d80c596f301eefb307b1aa5321c1cbd5760f7c6 |
| hovercard-subject-tag | issue:5156532381 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/6716/issue_layout |
| twitter:image | https://opengraph.githubassets.com/645181456403febea6623b626fd4f6b2810e9614ec0544b1339ef76464f2c2f3/simstudioai/sim/issues/6716 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/645181456403febea6623b626fd4f6b2810e9614ec0544b1339ef76464f2c2f3/simstudioai/sim/issues/6716 |
| og:image:alt | Summary OAuth reconnect drafts are selected by broad ambient context rather than one exact protected flow. Tighten the shared credential-draft lifecycle so concurrent and cross-provider OAuth flows... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BillLeoutsakosvl346 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48 |
| turbo-cache-control | no-preview |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2e8872b770cc4d5d0cc1f2026afab747a268e2ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width