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-11-15 09:21:09 +00:00
|
|
|
Users UserConfig `json:"users"`
|
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
|
|
|
}
|