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

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
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

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54092 488
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement