Authentication across multiple nodes

Hi, I’m trying to add authentication to a Phoenix LiveView site which in future could be distributed on multiple nodes (each of them with its own database) behind Nginx acting as reverse proxy.

Once users sign-in on a node they should automatically be seen as signed-in on all nodes.

In other words, if nginx send some requests form a user to node #01 and some to node #02 user shouldn’t be requested twice to sign-in.

If I understand correctly, Phoenix auth generators (phx.gen.auth) are limited to applications sharing the same database and Pow is not trivial to integrate with LiveView.

Can someone point me on the right track to solve my issue? An hint fro someone who solved this problem would be enough.

1 Like