Versions in this module Expand all Collapse all v0 v0.1.0 Sep 3, 2015 Changes in this version + const LocalConnectorType + const LoginPageTemplateName + const OIDCConnectorType + func RegisterConnectorConfigType(connectorType string, fn NewConnectorConfigFunc) + type Connector interface + ID func() string + LoginURL func(sessionKey, prompt string) (string, error) + Register func(mux *http.ServeMux, errorURL url.URL) + Sync func() chan struct{} + TrustedEmailProvider func() bool + type ConnectorConfig interface + Connector func(ns url.URL, loginFunc oidc.LoginFunc, tpls *template.Template) (Connector, error) + ConnectorID func() string + ConnectorType func() string + func NewConnectorConfigFromType(connectorType string) (ConnectorConfig, error) + type ConnectorConfigRepo interface + All func() ([]ConnectorConfig, error) + func NewConnectorConfigRepoFromFile(loc string) (ConnectorConfigRepo, error) + type LocalConnector struct + func (c *LocalConnector) Healthy() error + func (c *LocalConnector) ID() string + func (c *LocalConnector) LoginURL(sessionKey, prompt string) (string, error) + func (c *LocalConnector) Register(mux *http.ServeMux, errorURL url.URL) + func (c *LocalConnector) SetLocalIdentityProvider(idp *LocalIdentityProvider) + func (c *LocalConnector) Sync() chan struct{} + func (c *LocalConnector) TrustedEmailProvider() bool + type LocalConnectorConfig struct + ID string + PasswordInfos []user.PasswordInfo + func (cfg *LocalConnectorConfig) Connector(ns url.URL, lf oidc.LoginFunc, tpls *template.Template) (Connector, error) + func (cfg *LocalConnectorConfig) ConnectorID() string + func (cfg *LocalConnectorConfig) ConnectorType() string + type LocalIdentityProvider struct + PasswordInfoRepo user.PasswordInfoRepo + UserRepo user.UserRepo + func (m *LocalIdentityProvider) Identity(email, password string) (*oidc.Identity, error) + type NewConnectorConfigFunc func() ConnectorConfig + type OIDCConnector struct + func (c *OIDCConnector) Healthy() error + func (c *OIDCConnector) ID() string + func (c *OIDCConnector) LoginURL(sessionKey, prompt string) (string, error) + func (c *OIDCConnector) Register(mux *http.ServeMux, errorURL url.URL) + func (c *OIDCConnector) Sync() chan struct{} + func (c *OIDCConnector) TrustedEmailProvider() bool + type OIDCConnectorConfig struct + ClientID string + ClientSecret string + ID string + IssuerURL string + TrustedEmailProvider bool + func (cfg *OIDCConnectorConfig) Connector(ns url.URL, lf oidc.LoginFunc, tpls *template.Template) (Connector, error) + func (cfg *OIDCConnectorConfig) ConnectorID() string + func (cfg *OIDCConnectorConfig) ConnectorType() string + type Page struct + Error bool + Message string + Name string + PostURL string + SessionKey string