lavender/server/conf.go

22 lines
622 B
Go
Raw Normal View History

2023-10-08 15:24:59 +01:00
package server
import (
"github.com/1f349/lavender/issuer"
"github.com/1f349/lavender/utils"
)
type Conf struct {
Listen string `json:"listen"`
BaseUrl string `json:"base_url"`
ServiceName string `json:"service_name"`
Issuer string `json:"issuer"`
SsoServices []issuer.SsoConfig `json:"sso_services"`
2023-10-26 11:30:04 +01:00
AllowedClients []AllowedClient `json:"allowed_clients"`
2023-10-27 09:40:10 +01:00
Ownership DomainOwnership `json:"ownership"`
2023-10-26 11:30:04 +01:00
}
type AllowedClient struct {
Url utils.JsonUrl `json:"url"`
Permissions []string `json:"permissions"`
2023-10-08 15:24:59 +01:00
}