Skip to content

Add shop validation#1443

Merged
gonzaloriestra merged 1 commit intomainfrom
river/use-jwt-dest-for-token-exchange
Apr 16, 2026
Merged

Add shop validation#1443
gonzaloriestra merged 1 commit intomainfrom
river/use-jwt-dest-for-token-exchange

Conversation

@gonzaloriestra
Copy link
Copy Markdown
Contributor

@gonzaloriestra gonzaloriestra commented Apr 9, 2026

Description

https://docs.google.com/document/d/1c0iXhKBpm-yhvff0iSgq1XwBSPL39fTBVajIJ3svaxU/edit?usp=sharing

Checklist:

  • My commit message follow the pattern described in here
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the project documentation.
  • I have added a changelog line.

@gonzaloriestra gonzaloriestra force-pushed the river/use-jwt-dest-for-token-exchange branch from aaf2cc7 to 7992177 Compare April 9, 2026 11:38
@gonzaloriestra gonzaloriestra marked this pull request as ready for review April 9, 2026 11:59
@lizkenyon lizkenyon requested a review from zzooeeyy April 9, 2026 14:18
Comment thread lib/shopify_api/auth/token_exchange.rb
Comment thread lib/shopify_api/utils/shop_validator.rb Outdated
Comment thread lib/shopify_api/utils/shop_validator.rb Outdated
Comment thread lib/shopify_api/utils/shop_validator.rb Outdated

module ShopifyAPI
module Utils
class ShopValidator
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also a similar sanitize method from shopify_app gem, I wonder if the logic can be extracted so we don't have to maintain 2 packages for validating Shopify URLS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've finally copied the code from there. Once we release a new version, we could use it from shopify_app, as it's already using shopify-api-ruby. Makes sense?

Comment thread lib/shopify_api/auth/token_exchange.rb
Comment thread lib/shopify_api/utils/shop_validator.rb Outdated
@gonzaloriestra gonzaloriestra force-pushed the river/use-jwt-dest-for-token-exchange branch from 7992177 to 66cb7f4 Compare April 14, 2026 12:46
@gonzaloriestra gonzaloriestra force-pushed the river/use-jwt-dest-for-token-exchange branch from 66cb7f4 to d51f23a Compare April 14, 2026 12:57
Comment thread lib/shopify_api/auth/token_exchange.rb
@gonzaloriestra gonzaloriestra force-pushed the river/use-jwt-dest-for-token-exchange branch from d51f23a to 89b2da5 Compare April 15, 2026 10:25
@gonzaloriestra gonzaloriestra force-pushed the river/use-jwt-dest-for-token-exchange branch from 89b2da5 to 3e01209 Compare April 15, 2026 11:09
Copy link
Copy Markdown
Contributor

@lizkenyon lizkenyon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY for this! ⭐

@gonzaloriestra gonzaloriestra merged commit eda8616 into main Apr 16, 2026
7 checks passed
@gonzaloriestra gonzaloriestra deleted the river/use-jwt-dest-for-token-exchange branch April 16, 2026 10:09
@gonzaloriestra
Copy link
Copy Markdown
Contributor Author

gonzaloriestra commented Apr 16, 2026

@lizkenyon @zzooeeyy thanks a lot for your help! Do you want me to create a new release or how do you usually handle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants