fluxter/saas-provider-bundle

The SaaS Provider Bundle for easy SaaS provisioning

2.0.0-BETA5 2022-07-07 22:26 UTC

This package is auto-updated.

Last update: 2024-04-03 13:07:40 UTC


README

Scrutinizer Code Quality Build Status

The corresponding provider bundle for the Fluxter SaaS Consumer bundle

How to install

composer require fluxter/saas-provider-bundle

How to implement

  1. Create a client entity, that implements the TenantInterface
  2. Create a Client Parameter entity, that implements SaasClientParameterInterface
  3. Configure the bundle
    # config/packages/saas_provider.yaml
    saas_provider:
      client_entity: App\Entity\User
      global_url: app.yourdomain.tld
  4. Configure your firewall to the correct voter mode
    # config/packages/security.yaml
    security:
        access_decision_manager:
            strategy: unanimous
            allow_if_all_abstain: false