Skip to content

fix(ext): accept customer account extension tokens, whose iss is /checkouts (#83) - #85

Merged
0xtlt merged 1 commit into
mainfrom
fix/shopify-api-rc5-extension-iss
Nov 14, 2026
Merged

0xtlt merged 1 commit into
mainfrom
fix/shopify-api-rc5-extension-iss

Conversation

@0xtlt

@0xtlt 0xtlt commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Fixes #83

/ext answered 401 to every customer account extension: their session token carries iss: https://{shop}/checkouts, and only /admin was accepted.

  • Bumps shopify_api to =1.0.0-rc.5 (fix(oauth): accept a customer account extension token's iss on its shop shopify_api#35): an extension token's iss may be any path on the shop of its dest; admin session tokens still need exactly /admin. Cargo.lock changes only shopify_api, shopify_api_graphql, shopify_api_macros.
  • New test the_token_of_a_customer_account_extension_is_accepted_on_ext_routes_only (crates/openshop/tests/it/proxy_routes.rs): a token with the claims from the issue gets 200 on /ext/ping, and the same token gets 401 invalid session token on the Admin API (/api/functions). It fails on rc.4.
  • CHANGELOG: Fixed entry under Unreleased.

Gate: cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace --locked all pass locally.

🤖 Generated with Claude Code

…ckouts (#83)

shopify_api 1.0.0-rc.5 accepts an extension token whose `iss` is any path on
the shop of its `dest` (customer account extensions sign
`https://{shop}/checkouts`); admin session tokens still need `/admin`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xtlt
0xtlt merged commit d06a9ce into main Nov 14, 2026
10 checks passed
@0xtlt
0xtlt deleted the fix/shopify-api-rc5-extension-iss branch November 14, 2026 12:00
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.

Customer account extension tokens refused: iss is https://{shop}/checkouts, not /admin

1 participant