2020-03-18 15:46:41 +01:00
|
|
|
package auth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-03-25 07:58:58 +01:00
|
|
|
"github.com/caos/zitadel/internal/api/auth"
|
|
|
|
app "github.com/caos/zitadel/internal/auth"
|
2020-04-23 10:43:39 +02:00
|
|
|
sd "github.com/caos/zitadel/internal/config/systemdefaults"
|
2020-03-25 07:58:58 +01:00
|
|
|
"github.com/caos/zitadel/pkg/auth/api"
|
2020-03-18 15:46:41 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type Config struct {
|
2020-03-30 07:23:43 +02:00
|
|
|
App app.Config
|
|
|
|
API api.Config
|
2020-03-18 15:46:41 +01:00
|
|
|
}
|
|
|
|
|
2020-04-23 10:43:39 +02:00
|
|
|
func Start(ctx context.Context, config Config, authZ auth.Config, systemDefaults sd.SystemDefaults) {
|
2020-03-31 11:07:48 +02:00
|
|
|
api.Start(ctx, config.API)
|
2020-03-18 15:46:41 +01:00
|
|
|
}
|