kamaroly

kamaroly

Request for Example with Ash Multitenant & Authentication

Hi all,

I am looking for an example that demonstrate how to build a Phoenix app using Ash multi tenant with separate schema and Ash authentication for authentication.

Any Git repo or sample code I can refer to?

Marked As Solved

kamaroly

kamaroly

My issue was resolved. I will soon be writing a post about the same.

Also Liked

Neophen

Neophen

Have you ever done that post?

kamaroly

kamaroly

Thank you for the reply, @zachdaniel. I am yet to figure out how to have a context multi-tenant application with centralized users, organisations, and user_organisations tables while other tables are within the tenant schema, so that the following flow can be achieved:

  1. User registers.
  2. User creates an organisation as the owner.
  3. The system creates the organisation and automatically runs organisation migrations.
  4. When the user signs in, they are redirected to the organisation based on the current_organisation_id value in the users table.

Last Post!

Neophen

Neophen

I forgot you have that whole course!
I’ve started going through it as i actually need posts in my own product!

Where Next?

Popular in Questions Top

New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36689 110
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31525 112
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement