Documentation
¶
Overview ¶
Package oidcconfig parses and validates Podplane OIDC server configuration files.
Index ¶
Constants ¶
View Source
const DefaultSchemaRef = "./" + SchemaFileName
DefaultSchemaRef is the relative schema reference embedded in new OIDC configs.
View Source
const SchemaFileName = "podplane.oidc.schema.json"
SchemaFileName is the local JSON Schema file written next to OIDC configs.
Variables ¶
View Source
var SchemaJSON = schemas.OIDCSchemaJSON
SchemaJSON is the JSON Schema for podplane.oidc.jsonc files.
Functions ¶
func WriteSchema ¶ added in v0.2.0
WriteSchema writes the local JSON Schema file used by editors for offline validation, completion, and hover documentation.
Types ¶
type Config ¶
func Load ¶
Load reads an OIDC config file, strips JSONC comments, and validates the parsed configuration.
func NewDraftConfig ¶
NewDraftConfig returns a mutable draft Easy OIDC config for the requested provider.
type Domain ¶
type Domain struct {
Zone string `json:"zone,omitempty"`
Provider DomainProvider `json:"provider,omitempty"`
}
type DomainProvider ¶
type GroupsOverride ¶
type OIDC ¶
type OIDC struct {
Provider Provider `json:"provider"`
Hostname string `json:"hostname"`
Domain Domain `json:"domain"`
Connector Connector `json:"connector"`
SigningKeySecretARN string `json:"signing_key_secret_arn"`
DefaultRedirectURIs []string `json:"default_redirect_uris,omitempty"`
Clients map[string]Client `json:"clients,omitempty"`
GroupsOverrides map[string]GroupsOverride `json:"groups_overrides,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.