<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="336159" data-post-id="336159">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jclement" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jclement/120/33327_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jclement
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Sure.  This is what I’m seeing on attempted login.</p>
<pre><code class="lang-plaintext">[debug] HANDLE EVENT "submit" in AshAuthentication.Phoenix.SignInLive
  Component: AshAuthentication.Phoenix.Components.Password.SignInForm
  Parameters: %{"_csrf_token" =&gt; "B2UGNQIDOhl0ExEbIC9mJDg2HgZDIj8wu4jEdiWkGWGACD1CwDjH-xzG", "_method" =&gt; "POST", "user" =&gt; %{"email" =&gt; "user@user.com", "password" =&gt; "[FILTERED]"}}
[warning] Unhandled error in form submission for Floorward.Accounts.User.sign_in_with_password

This error was unhandled because Ash.Error.Invalid.TenantRequired does not implement the `AshPhoenix.FormData.Error` protocol.

** (Ash.Error.Invalid.TenantRequired) Queries against the Floorward.Accounts.User resource require a tenant to be specified

[debug] Replied in 11ms
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336159" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-336159" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336159"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="336182" data-post-id="336182">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>We should make that display a stack trace if there is one.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336182" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-336182" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336182"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="336183" data-post-id="336183">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Okay, so we’re going to have to do some more advanced debugging. As far as I can tell we’ve fixed this before, so something has to be different.</p>
<p>Add a <code>live_session</code> that uses this session hook</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">live_session :whatever, session: {AshAuthentication.Phoenix.Router, :generate_session, %{}} do
  live CustomLiveView
end
</code></pre>
<p>And then check to see what is in the session when mounting that liveview. If <code>"tenant"</code> is properly set or not, that will really help.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336183" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-336183" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336183"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="336188" data-post-id="336188">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jclement" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jclement/120/33327_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jclement
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It sure looks like it’s properly set, but I had to tweak your code a bit.  I think generate_session is in AshAuthentication.Phoenix.LiveSession, right?  And the <code>%{}</code> fails the match in LiveView and needs to be <code>[]</code>, I think.</p>
<p>I also add the <code>on_mount</code>. Without that, <code>current_tenant</code> was not assigned</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">    live_session :whatever,
      on_mount: AshAuthentication.Phoenix.LiveSession,
      session: {AshAuthentication.Phoenix.LiveSession, :generate_session, []} do
      live "/test/", Customers.CustomerListLive, :index
    end
</code></pre>
<p>With the above, the following shows a filled out <code>tenant</code></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;p&gt;&lt;%= @current_tenant |&gt; inspect %&gt;&lt;/p&gt;
</code></pre>
<pre><code class="lang-plaintext">#Floorward.Tenants.Tenant&lt;__meta__: #Ecto.Schema.Metadata&lt;:loaded, "tenants"&gt;, id: "cdb378f1-da68-4898-bcdc-26de6cd76e41", name: "Development", hostname: "localhost", aggregates: %{}, calculations: %{}, ...&gt;
</code></pre>
<p>I was wondering if my use of a struct instead of a string ID was causing something, but I just tried updating that and no luck.</p>
<p>Regarding your comment on getting a stack trace: I’ve tried a few things and not sure how to actually do that.  I did manage to get a trace with Rexbug.  Not sure if that’s helpful:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">[debug] MOUNT FloorwardWeb.Customers.CustomerListLive
  Parameters: %{}
  Session: %{"_csrf_token" =&gt; "rQlpfjmr3DVZckWgOrtNnZEw", "tenant" =&gt; #Floorward.Tenants.Tenant&lt;__meta__: #Ecto.Schema.Metadata&lt;:loaded, "tenants"&gt;, id: "cdb378f1-da68-4898-bcdc-26de6cd76e41", name: "Development", hostname: "localhost", aggregates: %{}, calculations: %{}, ...&gt;}

# 14:21:27.749 #PID&lt;0.796.0&gt; FloorwardWeb.Customers.CustomerListLive.mount/3
# AshAuthentication.authenticated_resources(:floorward)

# 14:21:27.749 #PID&lt;0.796.0&gt; FloorwardWeb.Customers.CustomerListLive.mount/3
# AshAuthentication.-authenticated_resources/1-fun-1-(:floorward)

# 14:21:27.749 #PID&lt;0.796.0&gt; FloorwardWeb.Customers.CustomerListLive.mount/3
# AshAuthentication.-authenticated_resources/1-fun-0-(Floorward.Accounts.User)

# 14:21:27.749 #PID&lt;0.796.0&gt; FloorwardWeb.Customers.CustomerListLive.mount/3
# AshAuthentication.-authenticated_resources/1-fun-0-(Floorward.Accounts.Token)

# 14:21:27.749 #PID&lt;0.796.0&gt; FloorwardWeb.Customers.CustomerListLive.mount/3
# AshAuthentication.-authenticated_resources/1-fun-0-(Floorward.Customers.Customer)

# 14:21:27.749 #PID&lt;0.796.0&gt; FloorwardWeb.Customers.CustomerListLive.mount/3
# AshAuthentication.-authenticated_resources/1-fun-0-(Floorward.Tenants.Tenant)
[debug] QUERY OK source="customers" db=0.3ms queue=0.5ms idle=1784.5ms
SELECT c0."id", c0."name", c0."address", c0."tenant_id" FROM "customers" AS c0 WHERE (c0."tenant_id"::uuid = $1::uuid) ["cdb378f1-da68-4898-bcdc-26de6cd76e41"]
↳ anonymous fn/3 in AshPostgres.DataLayer.run_query/2, at: lib/data_layer.ex:767
[debug] Replied in 39ms
[debug] HANDLE PARAMS in FloorwardWeb.Customers.CustomerListLive
  Parameters: %{}
[debug] Replied in 108µs
[info] GET /sign-in
[debug] QUERY OK source="tenants" db=0.3ms queue=0.4ms idle=767.4ms
SELECT t0."id", t0."name", t0."hostname" FROM "tenants" AS t0 WHERE (t0."hostname"::text = $1::text) ["localhost"]
↳ anonymous fn/3 in AshPostgres.DataLayer.run_query/2, at: lib/data_layer.ex:767
[debug] Processing with AshAuthentication.Phoenix.SignInLive.sign_in/2
  Parameters: %{}
  Pipelines: [:browser]

# 14:21:28.784 #PID&lt;0.787.0&gt; Bandit.DelegatingHandler.init/1
# AshAuthentication.authenticated_resources(:floorward)

# 14:21:28.784 #PID&lt;0.787.0&gt; Bandit.DelegatingHandler.init/1
# AshAuthentication.-authenticated_resources/1-fun-1-(:floorward)

# 14:21:28.784 #PID&lt;0.787.0&gt; Bandit.DelegatingHandler.init/1
# AshAuthentication.-authenticated_resources/1-fun-0-(Floorward.Accounts.User)

# 14:21:28.784 #PID&lt;0.787.0&gt; Bandit.DelegatingHandler.init/1
# AshAuthentication.-authenticated_resources/1-fun-0-(Floorward.Accounts.Token)
redbug done, msg_count - 10
[info] Sent 200 in 92ms
[info] CONNECTED TO Phoenix.LiveView.Socket in 19µs
  Transport: :longpoll
  Serializer: Phoenix.Socket.V2.JSONSerializer
  Parameters: %{"_csrf_token" =&gt; "AQUEBz8wB0RhARVpOh0QC30wQX4kKHYHsThwYZj6REC3YvGl2B50Jr3p", "_live_referer" =&gt; "undefined", "_mounts" =&gt; "0", "_track_static" =&gt; %{"0" =&gt; "http://localhost:4000/assets/app.css", "1" =&gt; "http://localhost:4000/assets/app.js", "2" =&gt; "http://localhost:4000/icon/apple-touch-icon.png", "3" =&gt; "http://localhost:4000/icon/favicon-16x16.png", "4" =&gt; "http://localhost:4000/icon/site.webmanifest"}, "vsn" =&gt; "2.0.0"}
[debug] MOUNT AshAuthentication.Phoenix.SignInLive
  Parameters: %{}
  Session: %{"_csrf_token" =&gt; "rQlpfjmr3DVZckWgOrtNnZEw", "otp_app" =&gt; nil, "overrides" =&gt; [FloorwardWeb.AuthOverrides, AshAuthentication.Phoenix.Overrides.Default], "path" =&gt; "/sign-in", "register_path" =&gt; "/register", "reset_path" =&gt; "/reset"}
[debug] Replied in 153µs
[debug] HANDLE PARAMS in AshAuthentication.Phoenix.SignInLive
  Parameters: %{}
[debug] Replied in 27µs
[debug] HANDLE EVENT "change" in AshAuthentication.Phoenix.SignInLive
  Component: AshAuthentication.Phoenix.Components.Password.SignInForm
  Parameters: %{"_csrf_token" =&gt; "PgAHIgw7NBRWCDAZF1wVIysjIiA6CAJHLQkRjQYfeLfCt7BDdQVnTRG0", "_method" =&gt; "POST", "_target" =&gt; ["user", "email"], "user" =&gt; %{"_unused_password" =&gt; "[FILTERED]", "email" =&gt; "user", "password" =&gt; "[FILTERED]"}}
[debug] Replied in 8ms
[debug] HANDLE EVENT "change" in AshAuthentication.Phoenix.SignInLive
  Component: AshAuthentication.Phoenix.Components.Password.SignInForm
  Parameters: %{"_csrf_token" =&gt; "PgAHIgw7NBRWCDAZF1wVIysjIiA6CAJHLQkRjQYfeLfCt7BDdQVnTRG0", "_method" =&gt; "POST", "_target" =&gt; ["user", "email"], "user" =&gt; %{"_unused_password" =&gt; "[FILTERED]", "email" =&gt; "user@user.com", "password" =&gt; "[FILTERED]"}}
[debug] Replied in 562µs
[debug] HANDLE EVENT "submit" in AshAuthentication.Phoenix.SignInLive
  Component: AshAuthentication.Phoenix.Components.Password.SignInForm
  Parameters: %{"_csrf_token" =&gt; "PgAHIgw7NBRWCDAZF1wVIysjIiA6CAJHLQkRjQYfeLfCt7BDdQVnTRG0", "_method" =&gt; "POST", "user" =&gt; %{"email" =&gt; "user@user.com", "password" =&gt; "[FILTERED]"}}
[warning] Unhandled error in form submission for Floorward.Accounts.User.sign_in_with_password

This error was unhandled because Ash.Error.Invalid.TenantRequired does not implement the `AshPhoenix.FormData.Error` protocol.

** (Ash.Error.Invalid.TenantRequired) Queries against the Floorward.Accounts.User resource require a tenant to be specified

[debug] Replied in 10ms
[warning] Unhandled error in form submission for Floorward.Accounts.User.sign_in_with_password

This error was unhandled because Ash.Error.Invalid.TenantRequired does not implement the `AshPhoenix.FormData.Error` protocol.

** (Ash.Error.Invalid.TenantRequired) Queries against the Floorward.Accounts.User resource require a tenant to be specified
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336188" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-336188" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336188"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="336199" data-post-id="336199">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Actually, setting a struct could theoretically cause problems in this case. You mentioned that you tried a <code>string</code>, when using <code>Plug.set_tenant</code> you tried setting a string instead of a struct?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336199" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-336199" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336199"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="336204" data-post-id="336204">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jclement" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jclement/120/33327_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jclement
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yes.  I did try returning tenant.id from the plug with the same result.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336204" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-336204" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336204"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="336268" data-post-id="336268">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Would you be interested in inviting me to the project? I could see if its a bug pretty easily that way, and fix it.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336268" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-336268" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336268"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="336335" data-post-id="336335">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jclement" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jclement/120/33327_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jclement
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Absolutely!  Thank you so much.</p>
<p>You should have received an invitation to jclement/floorward from github.</p>
<p>I really appreciate your help on this!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336335" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-336335" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336335"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #18"></div>
  </section>
</div>
    <div class="postbit" id="336358" data-post-id="336358">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thank you for sharing your project code. I’ve figured out the issue <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p>There are two paths that can be gone down for signing in.</p>
<ol>
<li>authentication over liveview. In this case, the liveview authenticates the user, and is given a very short-lived sign_in token that can be exchanged for an authentication token. Then, the user is redirected to an endpoint that exchanges the sign in token for a regular token. The benefit of this token is that the user gets an SPA-style experience, instead of a redirect + flash message. However, to do this, you must first set <code>sign_in_tokens_enabled? true</code> in your <code>password</code> block. Doing that resolves the issue.</li>
<li>The form is submitted to a controller the “old fashioned” way. When we fixed the original bug here, we did not fix that particular issue it seems. I’m investigating that currently.</li>
</ol> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336358" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-336358" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336358"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="336359" data-post-id="336359">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="zachdaniel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/120/31980_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  zachdaniel
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Ash</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Actually…sorry, I’m completely wrong <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"> The reason it worked for me locally is because it’s been fixed but has not been released. We will get a new release out and things should be all good from there. Sorry about that.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="336359" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ashauthentication-does-not-use-tenant-set-with-ash-plughelpers-set-tenant/63165/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-336359" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="336359"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #20"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/63165/load_more?page=3">Load more posts (2 remaining)</a>
</div></template></turbo-stream>