- Change
X-Shopify-API-Request-Failure-Unauthorized
HTTP header value from boolean to string
- Patch to not log params in ShopifyApp jobs #1086
- Fix to ensure post authenticate jobs are run after callback requests #1079
- Add debug logs in sessions controller
- Add debug logs for investigating authentication issues
- Replace script tags for ITP screens with data attributes
- Create user session if one does not exist but was expected
- Revert "Replace redirect calls to use App Bridge redirect functionality"
- Replace redirect calls to use App Bridge redirect functionality
- Ruby 2.4 is no longer supported by this gem
- Bump gemspec ruby dependency to 2.5
- (Beta) Add
--with-session-token
flag to the Shopify App generator to create an app that is compatible with App Bridge Authentication
- Add
signal_access_token_required
helper method for apps to indicate access token has expired and that a new one is required
- Fix the version checks for the dependency on
shopify_api
to allow all of v9.X
- Skip CSRF protection if a valid signed JWT token is present as we trust Shopify to be the only source that can sign it securely. #994
- Added Payload Verification module #992
- Add concern to check for valid shop domains in the unauthenticated controller
- Get current shop domain from JWT header
- Validate that the omniauth data matches the JWT data
- Persist the token information to the session store
- Update browser_sniffer to 1.2.2
- Adds the shop URL as a parameter when redirecting after the callback
- Bump minimum Ruby version to 2.4
- Bug fixes
- Small addition to WebhookJob to return if the shop is nil #952
- Added Rubocop to the Repo #948
- Added a WebhookVerification test helper #950
- Fix for deprecation warning while loading session storage at startup
- Changes that will allow future JWT authentication
- fix for deprecation warning while loading session storage at startup
- #887 Added concurrent user and shop session support (online/offline) BREAKING, please see README for migration notes.
- Remove check for API_KEY in config that was throwing errors during install #919
- Adds changelog information and README updates for 8.4.0 #916
- Updating shopify_api gem to 9.0.1
- Reverts reverted PR (#895) #897
- Moves samesite middleware higher in the stack #898
- Fix issue where not redirecting user to granted storage page casues infinite loop #900
- Reverts "Fix for return_to in safari after enable_cookies/granted_storage_access" introduced in 12.0.1
- disable samesite cookie middleware in tests
- middleware compatibility for ruby 2.3
- samesite cookie fixes for javascript libraries
- change generators to add AppBridge instead of EASDK
- Fix for return_to in safari after enable_cookies/granted_storage_access
- Updating shopify_api gem to 9.0.0
- Fix to allow SessionStorage to be flexible on what model names that the are used for storing shop and user data
- Move ExtensionVerificationController from engine to app controllers, as being in the engine makes ActionController::Base get loaded before app initiates #855
- Add back per-user token support (added in 11.5.0, reverted in 11.5.1)
- If you have an override on the
self.store(auth_session)
method on yourSessionRepository
model, the method signature must be changed as according to this change
- If you have an override on the
- Enable SameSite=None; Secure by default on all cookies for embedded apps #851
- Ensures compatibility of embedded apps with upcoming Chrome version 80 changes to cookie behaviour
- Configurable via
ShopifyApp.configuration.enable_same_site_none
(default true for embedded apps)
- Revert per-user token support temporarily
- Modularizes durable session storage
- Introduces per-user token support and user session management
- Remove
dotenv-rails
dependency. #835
- Fix hosts generator in Rails 5 #823
- Bump browser_sniffer version to 1.1.3 #824
- Update assets to be compatible with Rails 6 #808
- Adds ngrok whitelist in development #802
- Bump omniauth-shopify-oauth2 gem to v2.2.0
- Add Webmock and Pry as development dependencies
- Update install generator to leverage updates to ShopifyAPI::ApiVersion add in v8.0.0 of the shopify_api gem #790
- Lock shopify_api gem dependency to
~> 7.0
from>= 7.0.0
. - Remove flakey JS Tests
- bump sqlite3 development dependency to
~>1.4
from~> 1.3.6
. #789
- Add dotenv-rails gem to install generator, so apps fetch credentials from
.env
by default: #776
- Rename
login_url
method tologin_url_with_optional_shop
to avoid ambiguity with Rails' route helper method of the same name (see #585).
- Make sure OAuth-related redirects return user to originally requested URL once authenticated
- Add/update translations
- Update README to clarify nested routes
- Remove example app. Users should instead use the generators to scaffold an example app.
- Bump required Rails version to
> 5.2.1
to ensure5.2.1.1
or greater is used. This ensures two things:- Apps are not vulnerable to CVE-2018-16476
- Webhook payloads, from Shopify for API version 2019-07, which are processed in ActiveJob background jobs (the default behaviour of shopify_app's WebhooksController) are compatible, due to how ActiveJob versions prior to 5.2.1.1 process GlobalIDs encoded as string in job parameters. This prevents the exceptions reported previously.
- Fix returning to a deep link after authentication #746
- Add
meta viewport
tags to fix mobile responsive problems - Remove outdated, extraneous
yarn.lock
file (and rely on existingpackage-lock.json
instead) - Move inline js to a js asset file
- Minor documentation corrections
- Update browser_sniffer to fix unnecessary ITP flows in Shopify Mobile
- Add additional languages to translation.yml
- Minor documentation corrections
- Minor documentation corrections
- Handle
Webhook.all
returningnil
and raising onindex_by
- Breaking change: Api version support added see migration guide
-
Locked
shopify_api
gem to version < 7.0. 7.0 will have breaking changes that are incompatable withshopify_app
-
Session storage validation for shopify_domain is now set to
case_sensitive: false
.
- Added an
Authenticated
concern to allow gem users to inherit from a customAuthenticatedController
instead ofShopifyApp::AuthenticatedController
- Fixed a typo in RotateShopifyTokenJob
Added support for rotating Shopify access tokens:
- Added a generator shopify_app:rotate_shopify_token_job for generating the job to perform token rotation
- Extend Shopify app configuration to support a new and old secret token
- Extended webhook validation code to support validating against new and old secret tokens
- See the README for more details: https://github.com/Shopify/shopify_app#rotateshopifytokenjob
- Clear stale user session during auth callback
- Update README and Releasing.md
- Allow user agent to not be set
- Remove legacy EASDK examples
- Add .ruby-version file
- Clean up omniauth setup and fix examples
- Fix infinite redirect loops if users have disabled 3rd party cookies in their browser
- Fix embedded app session management in Safari 12.1
- Note that with this change we have extracted the callback action in its own controller. If you are relying on it, see the README for more details: https://github.com/Shopify/shopify_app#callback
- Shop names passed to OAuth are no longer case sensitive
- Removes
read_orders
from the default scopes provided upon app generation
- Adds the ability to customize the login URL through the initializer
- Fix embedded app session management in Safari 12
- Add support for translation platform
- Sanitize the shop query param to include
.myshopify.com
if no domain was provided
- fix iframe headers on session controller
- Add CSRF protection through
protect_from_forgery with: :exception
onShopifyApp::AuthenticatedController
- Send head :forbidden instead of :unauthorized when AppProxyVerification fails
- Changes how the ESDK concern allows iframes. Fixes an issue with the first request for some people
- Bugfix: Don't logout shops from
login_again_if_different_shop
when Rails params for a 'Shop' model are passed in [#477]
Known bug: Shop logged out when submitting a form for 'Shop' objects, fixed in 8.2.1 [See #480 for details]
- Add
webhook_jobs_namespace
config option. [#463] - Updates login page styles to match the Polaris design system. [#474]
Known bug: Shop logged out when submitting a form for 'Shop' objects, fixed in 8.2.1 [See #480 for details]
- Add support for per_user_authentication
- Pass the shop param in the session for authentication instead of a url param (prevents csrf). If you are upgrading from an older version of the gem you will need to update your omniauth.rb initializer file. Check the example app for what it what it should look like.
Known bug: Shop logged out when submitting a form for 'Shop' objects, fixed in 8.2.1 [See #480 for details]
- Removed the
shopify_session_repository
initializer. The SessionRepository is now configured through the main ShopifyApp configuration object and the generated initializer - Moved InMemorySessionStore into the ShopifyApp namespace
- Remove ShopifySession concern. This module made the code internal to this engine harder to follow and we want to discourage over-writing the auth code now that we have generic hooks for all extra tasks during install.
- Changed engine controllers to subclass ActionController::Base to avoid any possible conflict with the parent application
- Removed the
ShopifyApp::Shop
concern and added its methods toShopifyApp::SessionStorage
. To update for this change just remove this concern anywhere it is being used in your application. - Add
ShopifyApp::EmbeddedApp
controller concern which handles setting the required headers for the ESDK. Previously this was done by injecting configuration into applicaton.rb which affects the entire app. - Add webhooks to generated home controller. This should help new users debug issues.
Known bug: Shop logged out when submitting a form for 'Shop' objects, fixed in 8.2.1 [See #480 for details]
- Add an after_authenticate job which will be run once the shop is authenticated. [#431]
Known bug: Shop logged out when submitting a form for 'Shop' objects, fixed in 8.2.1 [See #480 for details]
- Bump required omniauth-shopify-oauth2 version to 1.2.0.
- Always expect params[:shop] to be a string.
- Remove 'Logged in' flash message [#425]
- Fix an issue with the create_shops generator template [#423]
- Remove support for Rails 4 [#417]
- Add i18n locale param support [#409]
- Require
shopify_app
>= 4.3.2
. This version relaxes the ruby version requirement from>= 2.3.0
to>= 2.0
- Rails 5: ActionDispatch::Reloader#to_prepare is deprecated [#404]
- Update LoginProtection#fullpage_redirect_to to get shopify domain from session [#401]
- Update LoginProtection.redirection_javascript to work with absolute URLS [#389]
- Fix redirect issue by sanitizing shop name on sessions#new
- Use postMessage to redirect parent iframe during authentication [#366]
- Add support for dynamically generating scripttag URLs
- Bug-fix: Update scripttags_manager_job
- Bug-fix:
--application_name
and--scope
generates proper Configuration even when options supplied to them contain whitespaces.
- Disable application layout rendering for the
/login
page
- Lower required Ruby version to 2.2.2 to better match up with Rails 5.0
- Update login page copy
- Add application_name configuration option
- Add new optional App Proxy Controller Generator to the Engine. Refer README for details.
- Include ShopifyApp::LoginProtection in Authenticated and Session Controller directly instead of Application Controller.
- Loosen ShopifyAPI dependency requirements to
>= 4.2.2
and allow ShopifyAPI 4.3.0 and above. - Move application.js to inside HEAD in Embedded App Template.
- Add ability to override the ActiveJob queue names in initializer file.
- Pass configured resources (like webhooks or scripttags) into the job rather than reading the config again. This allows for dynamically setting ShopifyApp config in a web request and having the job handle it correctly. This change does not affect the usage of webhooks or scripttags
- Loosen Rails dependency requirements to
>= 4.2.6
and allow Rails 5.0 - Add support for App Proxies
- Remove http-equiv meta tag as it causes OAuth issues in Chrome
- Remove obtrusive “Continue” text in redirects
- Bump required shopify_api version to 4.x.
- Bump required Rails version to
>= 4.2.6
since we are now usingActiveSupport::SecurityUtils:Module
- Fix CSRF redirect issue
- add support to i18n for flash messages (English and Spanish).
- rename WebhooksController module to WebhookVerification
- added a WebhooksController which automatically delegates to jobs
- moved all engine controllers under the ShopifyApp namespace
- rename SessionsController module to SessionsConcern
- more robust redirects, with valid HTML in HTTP response bodies
ShopifyApp::Controller
has been removed. You’ll need to replace all includes ofShopifyApp::Controller
withShopifyApp::LoginProtection
- adds add_webhook generator to make it easier to add new webhooks to your app
- update the install generator to use standard rails generate arguments, usage has changed from
-api_key=your_key
to--api_key your_key
- remove the redirect uri - this is done automatically inside omniauth now
- Update minimum required rails version to 4.2 to include active job
- More semantic and accessible markup in the sessions/new, embedded_app, and product index views.
- Moved all JavaScript to load at the bottom of the page instead of the head, for page loading better performance.
- Move SessionStorage from a generated class to a re-usable module. To migrate to the new module, delete the old generated SessionStorage class in the models directory and include the SessionStorage module in your Shop model.
- Adds a WebhooksManager class and allows you to configure what webhooks your app needs. The rest is taken care of by ShopifyApp provided you set up a backgroud queue with ActiveJob
- Adds a WebhooksController module which can be included to handle the boiler plate code for a controller receiving webhooks from Shopify
- add callback url to omniauth provider
- add default redirect_uri
- Return an HTTP 401 for XHRs that aren't logged in
- add redirect_uri which is now required
- fix login again with different shop
- Re-written as a proper rails engine
- New modular generators
- generates embedded apps by default
- can bootstrap your app with a standard shop table and model
- code now lives as concerns in the engine which are included in your controllers feel free to override anything you need in your app
- re-styled with Twitter Bootstrap css framework and updated docs [warren]
- Require shopify_api gem via proper railtie setup [willem]
- Don't require shopify.yml when using environment variables [cody]
- Renamed instances of current_shop to shop_session to maintain logic
- Replace old LoginController with a RESTful SessionsController