Shopify / Shopify/shopify-app-template-ruby

Is there any way to include `shopify_app` concerns conditionally in `AuthenticatedController`?

Open
#153 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
154
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Hello!

I built the embedded app but I also want to let customers access app on the website directly as a standalone app.
Since I have ShopifyApp::EnsureHasSession in AuthenticatedController and controllers are inherited from it, it redirects to login page on a standalone app.

class AuthenticatedController < ApplicationController
  include ShopifyApp::EnsureHasSession
end

Is there any way to include shopify_app concerns in only embedded app?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading AuthenticatedController, ApplicationController, and ShopifyApp::EnsureHasSession to understand how inherited controllers enforce the embedded-app session. The issue does not name a target file, test, or acceptance criteria; confirm the expected standalone-app behavior and how conditional inclusion should be verified before estimating implementation work.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
authentication, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.