Versions in this module Expand all Collapse all v0 v0.1.0 Sep 3, 2015 Changes in this version + const APIVersion + const AdminAPIVersion + const LoginPageTemplateName + const RegisterTemplateName + const ResetPasswordTemplateName + const SendResetPasswordEmailTemplateName + const VerifyEmailTemplateName + var AdminCreateEndpoint = addBasePath("/admin") + var AdminGetEndpoint = addBasePath("/admin/:id") + var AdminGetStateEndpoint = addBasePath("/state") + var UsersCreateEndooint = addBasePath(UsersSubTree) + var UsersGetEndpoint = addBasePath(UsersSubTree + "/:id") + var UsersListEndpoint = addBasePath(UsersSubTree) + "/" + var UsersSubTree = "/users" + type AdminServer struct + func NewAdminServer(adminAPI *admin.AdminAPI, rotator *key.PrivateKeyRotator) *AdminServer + func (s *AdminServer) HTTPHandler() http.Handler + type JWTVerifierFactory func(clientID string) oidc.JWTVerifier + type Link struct + DisplayName string + ID string + URL string + type MultiServerConfig struct + DatabaseConfig db.Config + KeySecrets [][]byte + func (cfg *MultiServerConfig) Configure(srv *Server) error + type OIDCServer interface + ClientCredsToken func(creds oidc.ClientCredentials) (*jose.JWT, error) + ClientMetadata func(string) (*oidc.ClientMetadata, error) + CodeToken func(creds oidc.ClientCredentials, sessionKey string) (*jose.JWT, string, error) + KillSession func(string) error + Login func(oidc.Identity, string) (string, error) + NewSession func(connectorID, clientID, clientState string, redirectURL url.URL, nonce string, ...) (string, error) + RefreshToken func(creds oidc.ClientCredentials, token string) (*jose.JWT, error) + type ResetPasswordHandler struct + func (h *ResetPasswordHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type SendResetPasswordEmailHandler struct + func (h *SendResetPasswordEmailHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Server struct + ClientIdentityRepo client.ClientIdentityRepo + ConnectorConfigRepo connector.ConnectorConfigRepo + Connectors []connector.Connector + HealthChecks []health.Checkable + IssuerURL url.URL + KeyManager key.PrivateKeyManager + KeySetRepo key.PrivateKeySetRepo + LoginTemplate *template.Template + PasswordInfoRepo user.PasswordInfoRepo + RefreshTokenRepo refresh.RefreshTokenRepo + RegisterTemplate *template.Template + ResetPasswordTemplate *template.Template + SendResetPasswordEmailTemplate *template.Template + SessionManager *session.SessionManager + Templates *template.Template + UserEmailer *useremail.UserEmailer + UserManager *user.Manager + UserRepo user.UserRepo + VerifyEmailTemplate *template.Template + func (s *Server) AddConnector(cfg connector.ConnectorConfig) error + func (s *Server) ClientCredsToken(creds oidc.ClientCredentials) (*jose.JWT, error) + func (s *Server) ClientMetadata(clientID string) (*oidc.ClientMetadata, error) + func (s *Server) CodeToken(creds oidc.ClientCredentials, sessionKey string) (*jose.JWT, string, error) + func (s *Server) HTTPHandler() http.Handler + func (s *Server) JWTVerifierFactory() JWTVerifierFactory + func (s *Server) KillSession(sessionKey string) error + func (s *Server) Login(ident oidc.Identity, key string) (string, error) + func (s *Server) NewClientTokenAuthHandler(handler http.Handler) http.Handler + func (s *Server) NewSession(ipdcID, clientID, clientState string, redirectURL url.URL, nonce string, ...) (string, error) + func (s *Server) ProviderConfig() oidc.ProviderConfig + func (s *Server) RefreshToken(creds oidc.ClientCredentials, token string) (*jose.JWT, error) + func (s *Server) Run() chan struct{} + type ServerConfig struct + EmailFromAddress string + EmailTemplateDirs []string + EmailerConfigFile string + IssuerLogoURL string + IssuerName string + IssuerURL string + StateConfig StateConfigurer + TemplateDir string + func (cfg *ServerConfig) Server() (*Server, error) + type SingleServerConfig struct + ClientsFile string + ConnectorsFile string + UsersFile string + func (cfg *SingleServerConfig) Configure(srv *Server) error + type StateConfigurer interface + Configure func(*Server) error + type UserMgmtServer struct + func NewUserMgmtServer(userMgmtAPI *api.UsersAPI, jwtvFactory JWTVerifierFactory, um *user.Manager, ...) *UserMgmtServer + func (s *UserMgmtServer) HTTPHandler() http.Handler