Skip to content

Add client_id to device flow configuration - #2

Merged
yohaann196 merged 1 commit into
mainfrom
yohaann196-patch-2
Apr 4, 2026
Merged

yohaann196 merged 1 commit into
mainfrom
yohaann196-patch-2

Conversation

@yohaann196

Copy link
Copy Markdown
Owner

fix: expose client_id in device flow discovery response

The auth discovery endpoint was missing client_id from the device_flow
object, causing GitHub device flow to fail. The CLI already used
"emdash-cli" as a hardcoded fallback; this makes it the canonical
advertised value.

Fixes emdash-cms#157

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes device-flow authentication discovery by exposing the client_id in the /_emdash/.well-known/auth response so CLI/device-flow consumers can reliably use the canonical client identifier.

Changes:

  • Add client_id: "emdash-cli" to the auth.methods.device_flow discovery payload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yohaann196
yohaann196 merged commit ea2eea8 into main Apr 4, 2026
4 checks passed
ascorbic added a commit that referenced this pull request Apr 11, 2026
* Add OG Image field to content editor

The `_emdash_seo` table and content API already support `seo_image`, but
the admin UI had no way to set it. This adds:

- `SeoImageField` component using the existing `MediaPickerModal`
- 2-column grid layout placing the OG Image next to the Featured Image
- `description` prop on `ImageFieldRenderer` for helper text below images
- Preserve `seo.image` in `SeoPanel.emitChange` so sidebar edits don't
  clear the image

Closes emdash-cms#327

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* style: format

* Add changeset and fix stale seo.image in SeoPanel

- Add changeset for @emdash-cms/admin patch release
- Remove image from SeoPanel.emitChange to avoid overwriting
  a freshly-selected OG image with a stale prop value

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Address review feedback on OG Image field

- Fix #1: Use @phosphor-icons/react instead of lucide-react
- Fix #2: Send minimal patch { image } instead of spreading stale seo props
- Fix emdash-cms#3: Only show OG Image next to the featured_image field, not all image fields
- Fix emdash-cms#4: Only add description text for the featured_image field
- Fix emdash-cms#5: Add responsive breakpoint (grid-cols-1 md:grid-cols-2)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* style: format

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Co-authored-by: emdashbot[bot] <emdashbot[bot]@users.noreply.github.com>
Co-authored-by: Matt Kane <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub device flow fails — clientId missing from auth discovery

2 participants