This repository was archived by the owner on Nov 2, 2026. It is now read-only.
Repository navigation
Branded OAuth consent screen (wp_native_auth_oauth_consent_template) - #395
Merged
Merged
Conversation
Contributor
Homeboy Results —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Branded OAuth consent screen for Extra Chill, served through wp-native-auth's
wp_native_auth_oauth_consent_templateseam.templates/oauth-consent.php(new) — the template. Full theme chrome viaget_header()/get_footer()(leaderboard-template precedent), content built only from design-system classes. Discards the default template's standalone<!DOCTYPE html>document and inline<style>entirely.inc/wp-native-bridge.php— registers the filter (+ header docblock updated). The bridge is the canonical wp-native-auth integration surface and is already conditionally loaded only when wp-native-auth is active, so the registration ships behind the same guard.Fixes #394
Form contract
Copied verbatim from
wp-native-auth/inc/oauth-consent-form.php(upstreamchubes4/wp-native):wp_nonce_field( 'wp_native_auth_oauth_consent' )→ renders_wpnonce(checked by the decision handler as$body['_wpnonce'])<input type="hidden" name="oauth_request" value="<?php echo esc_attr( $args['bundle'] ); ?>">— bundle rendered verbatim, never rebuilt<input type="hidden" name="oauth_signature" value="<?php echo esc_attr( $args['signature'] ); ?>">— same<button type="submit" name="oauth_decision" value="approve">/value="deny", inmethod="post" action=""Verified by rendering the template with representative
$args(both withclient_uriand with a raw client id +resourcepresent): all four fields present with exact names, bundle/signature round-trip unmodified.CSS classes used (all from
themes/extrachill/design-system.html).card.card/.card prules.btn.btnrule.btn--primary.btn--danger.notice.noticerule.notice--infoNo CSS was added — no stylesheet, no
<style>block, no inline styles.git diff --statshows template + filter registration only (2 files, +126).Copy
client_uriwhen present (plain<strong>otherwise, e.g. when the client is unnamed and the raw id is shown).resourceis shown when requested ("This connection is scoped to the resource …") since that is a real, user-meaningful restriction.<code>— a trust moment; lets the user verify the client identity they're approving even whenclient_nameis self-reported.notice--info: "You can revoke this access at any time."Notes: gaps in the shipped theme CSS (no workarounds added, per anti-scope)
The design system documents these components, but the currently shipped theme CSS does not define them yet —
design-system.htmldefines them only in its own demo<style>, andstyle.css/assets/css/*have no.card,.btn*, or double-dash.notice--*rules. Until the theme ships them, this screen renders structurally correct (theme chrome + base.noticerule exist) but the card/buttons/notice accent will be unstyled. Flagging rather than papering over:.card,.btn,.btn--primary,.btn--danger,.notice--info— not in shipped theme CSS. (.noticeitself is.).notice--warningexists in the design system but not instyle.css, which only has single-dash-success/-info/-errorvariants. I usednotice--infosince even the base.noticerule renders sanely today.<p>(.btnisdisplay:inline-block, so they flow side by side with no extra CSS).Verification
php -lclean on both touched files.$argsin both variants (named client withclient_uri; raw client id withresourceset).esc_html/esc_attr/esc_urlthroughout, i18n viaextrachill-userstext domain.