Documentation
¶
Overview ¶
Package testscim is a SCIM 2.0 service provider for AuthKit's provisioning tests: users in memory, every request recorded, failures on demand.
Index ¶
- type Request
- type Server
- func (s *Server) Add(u scim.User) string
- func (s *Server) Edit(id string, edit func(*scim.User))
- func (s *Server) FailNext(n int)
- func (s *Server) Len() int
- func (s *Server) Remove(id string)
- func (s *Server) Requests() []Request
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) User(id string) (scim.User, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Token string
PageSize int
FailWhen func(*http.Request) bool
// contains filtered or unexported fields
}
Server holds users by the id it gives them. Token, when set, is the bearer token it requires; PageSize, when set, is the most users a list answers; FailWhen, when it returns true, answers a request 503.
Click to show internal directories.
Click to hide internal directories.