Versions in this module Expand all Collapse all v0 v0.5.0 May 24, 2024 Changes in this version + var ErrNotFound = errors.New("not found") + type MemoryStore struct + func (s *MemoryStore) Delete(key string) error + func (s *MemoryStore) Get(key string, value interface{}) error + func (s *MemoryStore) List(prefix string) ([]string, error) + func (s *MemoryStore) Put(key string, value interface{}) error + type Options struct + Certificate *x509.Certificate + Key crypto.PrivateKey + Logger logger.Interface + Signer crypto.Signer + Store Store + URL url.URL + type Server struct + IDP saml.IdentityProvider + Store Store + func New(opts Options) (*Server, error) + func (s *Server) GetServiceProvider(_ *http.Request, serviceProviderID string) (*saml.EntityDescriptor, error) + func (s *Server) GetSession(w http.ResponseWriter, r *http.Request, req *saml.IdpAuthnRequest) *saml.Session + func (s *Server) HandleDeleteService(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleDeleteSession(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleDeleteShortcut(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleDeleteUser(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleGetService(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleGetSession(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleGetShortcut(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleGetUser(c web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleIDPInitiated(c web.C, w http.ResponseWriter, r *http.Request) + func (s *Server) HandleListServices(_ web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleListSessions(_ web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleListShortcuts(_ web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleListUsers(_ web.C, w http.ResponseWriter, _ *http.Request) + func (s *Server) HandleLogin(_ web.C, w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePutService(c web.C, w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePutShortcut(c web.C, w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePutUser(c web.C, w http.ResponseWriter, r *http.Request) + func (s *Server) InitializeHTTP() + type Service struct + Metadata saml.EntityDescriptor + Name string + type Shortcut struct + Name string + RelayState *string + ServiceProviderID string + URISuffixAsRelayState bool + type Store interface + Delete func(key string) error + Get func(key string, value interface{}) error + List func(prefix string) ([]string, error) + Put func(key string, value interface{}) error + type User struct + CommonName string + Email string + GivenName string + Groups []string + HashedPassword []byte + Name string + PlaintextPassword *string + ScopedAffiliation string + Surname string