fix(consent): render the OIDC consent page through the public auth shell (BUNYIP-223) #253
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/bunyip!253
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-223-consent-page-styled-shell"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A first-time mokosh sign-in triggers /oauth2/consent for the profile scope. The page was rendered via render_html(card), the bare-Markup-to-Response helper, instead of auth_page which wraps the public shell (head + stylesheet link + brand chrome). Without the stylesheet, the auth_card's shield SVG ships at the browser default size (~500px tall), the bullet list ignores its Tailwind classes, and the Allow / Deny buttons land naked in the corner. Functionally the flow worked; presentationally it looked like a broken page right at the user's most visually-loaded moment with the product.
Switch consent_get to auth_page so the consent screen renders inside the same shell as /login, /register, /magic-link, and the verify-email landing. Move the "An application is requesting access" copy into the auth_card subtitle slot where it visually belongs, and replace the manual "·" glyph + flex row with a normal list-disc list so the bullet is the real list bullet not a typographic character. No change to consent_post or the underlying scope-grant API.
#BUNYIP-223