feat(auth): resolve OAuth server clients from application storage #270
All Vouch review confidence checks passed
Residual risk 0.45 = Change Risk (0.68) × (1 − Review Confidence (0.34)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 405 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 60% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.068
Real PR Conversation Timeline
1 comments
"Review active on #270"
general
weight: 0.35
github-actions[bot]
OAuthServer.makeandmakeOpenIdonly know clients from the staticclientsoption and Client ID Metadata Documents. An application that registers clients itself, for example through its own RFC 7591 endpoint, cannot serve them, and confidential clients need a plaintextclientSecret.Each server now exposes an optional
oauth.Clientsservice, consulted after static clients and before metadata discovery.ClientgainsclientSecretDigest, the unpadded base64url SHA-256 of a generated secret, so stored rows never hold plaintext.Client. Rows the server cannot use (unknown keys, failed decode, a plaintextclientSecret) are reported and return 503, like other application service output. A row for another ID or with ajwksUriisinvalid_client: storedprivate_key_jwtclients use inlinejwks, so registrant-chosen hosts cannot hold the shared discovery permits.config.clients.some(...). Stored clients get the confirmation page instead of direct error redirects, andprompt=noneis refused (RFC 9700 section 4.11.2). This also keepsnew URL(clientId)away from non-URL IDs in the error redirect and consent page.Out of scope: a registration endpoint, per-client allowed scopes, and
client_credentials.<!-- codesmith:footer -->
---
<a href="https://app.blacksmith.sh/yielded-dev/codesmith/auth/pr/270?autoLogin=true&ref=codesmith_pr_footer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png" width="162" height="28"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1795525376&installation_model_id=440452&pr_number=270&ref=codesmith_pr_footer&repository=yielded-dev%2Fauth&return_to=https%3A%2F%2Fgithub.com%2Fyielded-dev%2Fauth%2Fpull%2F270&signature=bec3367fe4cc8b06ccd825de9e3e370b2e0c7763fa5d4ee33359fe1d61346a5f"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png" width="190" height="28"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>
<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->