Documentation ¶
Index ¶
- func NewConverter() *converter
- func NewRepository(conv Converter) *repository
- func NewService(tenant TenantRepository, transact persistence.Transactioner, ...) *service
- func RegisterHandler(ctx context.Context, router *mux.Router, cfg Config, ...) error
- type Config
- type Converter
- type TenantRepository
- type TenantService
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConverter ¶
func NewConverter() *converter
func NewRepository ¶
func NewRepository(conv Converter) *repository
func NewService ¶
func NewService(tenant TenantRepository, transact persistence.Transactioner, uidService UIDService, config Config) *service
func RegisterHandler ¶
func RegisterHandler(ctx context.Context, router *mux.Router, cfg Config, authConfig []authenticator.Config, transact persistence.Transactioner) error
Types ¶
type Config ¶
type Config struct { HandlerEndpoint string `envconfig:"APP_HANDLER_ENDPOINT,default=/v1/callback/{tenantId}"` TenantPathParam string `envconfig:"APP_TENANT_PATH_PARAM,default=tenantId"` TenantProviderTenantIdProperty string `envconfig:"APP_TENANT_PROVIDER_TENANT_ID_PROPERTY"` TenantProvider string `envconfig:"APP_TENANT_PROVIDER"` JWKSSyncPeriod time.Duration `envconfig:"default=5m"` AllowJWTSigningNone bool `envconfig:"APP_ALLOW_JWT_SIGNING_NONE,default=true"` JwksEndpoints string `envconfig:"APP_JWKS_ENDPOINTS"` IdentityZone string `envconfig:"APP_TENANT_IDENTITY_ZONE"` SubscriptionCallbackScope string `envconfig:"APP_SUBSCRIPTION_CALLBACK_SCOPE"` }
type Converter ¶
type Converter interface { ToEntity(in model.TenantModel) tenant.Entity FromEntity(in *tenant.Entity) *model.TenantModel }
type TenantRepository ¶
type TenantService ¶
type UIDService ¶
type UIDService interface {
Generate() string
}
Click to show internal directories.
Click to hide internal directories.