Reputation: 2968
I'm developing a multi-tenant web application that uses pusher to send notifications, I need to have one app for each tenant, so I'd like to create a tenenat throught a command and automatically create a pusher app and store its keys
I couldn't find it in Pusher docs, is this an possible option?
What would be my alternatives?
Upvotes: 0
Views: 298
Reputation: 4091
That isn't possible at the moment. A possible workaround would be to create a number of apps in advance and then use these credentials as you create tenants.
Additionally, it is possible to create a multi-tenant approach using a single app in Channels. Private/Presence channels require user authentication before the subscription succeeds. This means you could create a channel private-tenant1
and only allow users from tenant1 to subscribe.
See https://pusher.com/docs/channels/using_channels/private-channels for more info.
Upvotes: 1