A cluster-wide authentication for meteor

I recently started working on a solution for providing cluster-wide authentication for projects that use meteorhacks:cluster as their applicative cluster.

You can check out the project at https://github.com/ozsay/cluster-accounts.

How it works:

  • The meteor application that manages all of the users (we refer to it as the provider) stores a collection of all the logged in users.
  • Each node in the cluster that connected to the provider (we refer to it as the consumer) syncs a local collection of the logged in users.
  • Whenever a user logs in, the client will send the login tokens to each of the nodes for authentication. The consumer will register the client as logged in user if the login tokens sent by the client macthes any of the tokens that are synced with the provider.
5 Likes