Documentation ¶
Overview ¶
Package dex provides specific connectors for the CoreOS/Dex implementation of OpenID Connect protocol
Index ¶
- Variables
- func ConvertUserApiToIdentity(idmUser *idm.User, authSourceName string) (ident connector.Identity)
- func RegisterDexPydioConnector(name string, configProvider func() PydioConnectorConfig)
- type ApiConfig
- type ConnectorConfig
- type ConnectorList
- type PydioConnector
- type PydioConnectorConfig
- type WrapperConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PydioConnectorsConfig = map[string]func() PydioConnectorConfig{}
)
Functions ¶
func RegisterDexPydioConnector ¶
func RegisterDexPydioConnector(name string, configProvider func() PydioConnectorConfig)
Types ¶
type ApiConfig ¶
type ApiConfig struct { }
func (*ApiConfig) OpenConnector ¶
func (c *ApiConfig) OpenConnector(logger logrus.FieldLogger) (interface{}, error)
type ConnectorConfig ¶
type ConnectorList ¶
type ConnectorList struct { Type string `json:"type"` Name string `json:"name"` ID int16 `json:"id"` IsLast bool `json:islast` Connector interface { connector.Connector connector.PasswordConnector connector.RefreshConnector } }
type PydioConnector ¶
type PydioConnector struct { Type string `json:"type"` Name string `json:"name"` ID int16 `json:"id"` IsLast bool `json:islast` Config PydioConnectorConfig `json:"config"` }
PydioConnector is a magical type that can unmarshal YAML dynamically. The Type field determines the connector type, which is then customized for Config.
type PydioConnectorConfig ¶
type PydioConnectorConfig interface {
Open(logger logrus.FieldLogger) (connector.Connector, error)
}
PydioConnectorsConfig provides an easy way to return a config struct depending on the connector type.
type WrapperConfig ¶
type WrapperConfig struct {
Connectors []ConnectorConfig `json:"pydioconnectors"`
}
func (*WrapperConfig) Open ¶
func (c *WrapperConfig) Open(logger logrus.FieldLogger) (connector.Connector, error)
func (*WrapperConfig) OpenConnector ¶
func (c *WrapperConfig) OpenConnector(logger logrus.FieldLogger) (interface { connector.Connector connector.PasswordConnector connector.RefreshConnector }, error)
Click to show internal directories.
Click to hide internal directories.