teamhanko / passkeys

FIDO2-certified passkey server and SDKs for adding passkey support to any auth system
https://hanko.io/passkey-api
GNU Affero General Public License v3.0
125 stars 10 forks source link

Create a default Tenant #8

Open shentschel opened 12 months ago

shentschel commented 12 months ago

There is currently an overhead when using the passkey-server for a single project. To create a project you have to start not only the passkey-server api but also the admin api and use the create-tenant Endpoint to get the project up and running.

To improve this situation there should be a command to create a default tenant either by adding the default tenant config to the config.yml or via environment variables.

shentschel commented 4 months ago

I'm currently torn about how to implement this...

I can implement it via environment variables but then IMHO we should use as much standard values as possible to reduce the amount of variables we have to introduce.

Another way would be to add a default section to the config which can contain all the default tenant stuff. Then we would only need to check once per startup if there already is any tenant before creating one.

What are your opinions on that @FlxMgdnz @FreddyDevelop ?