We are developing an application on ASPNETZERO * , using Angular + .Net Core and struggling to get tenant registration working with Google Auth.
We would like to allow self-registration of our SAAS product, via Google Auth. Ideally when a user clicks Google Auth we would create the tenant if it didn't exist yet, and register that user. Unfortunately it seems that the framework only supports Google Auth for user signin/registration, not for tenant creation.
Has anyone successfully accomplished the above? Are we missing something?
Prerequisites Product Version: 9.0.1 Angular .NET Core ABP: 5.10.1
You are right, by default user registration is supported with external login providers. However, you can create a tenant here when external authentication succeeds if your app already knows the Tenancy Name.
As an alternative,
- You can develop a new page and redirect user to that page when authentication succeeds.
- Ask user for tenant information on that page
- Create Tenant and set previously created user's TenantId to newly created Tenant's ID when user clicks the submit button on your custom Tenant Registration page.
That's what we are doing:
This data is comming from the google auth.
The login manager is only getting the Tenant, but no User nor Identity.
Please add your GitHub user on https://aspnetzero.com/LicenseManagement so you can access the private link.