Documentation ¶
Overview ¶
Package jwtmocktest provides a test server for use in end-to-end HTTP tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
A Server is an HTTP server listening on a system-chosen port on the local loopback interface, for use in end-to-end HTTP tests.
func NewServer ¶
NewServer starts and returns a new Server. The caller should call Close when finished, to shut it down.
func (*Server) GenerateJWT ¶
GenerateJWT generates a JWT token for use in authorization header.
func (*Server) RegisterClient ¶ added in v1.1.1
func (s *Server) RegisterClient(registration jwtmock.ClientRegistration) error
RegisterClient registers a new client for subsequent token request.
Click to show internal directories.
Click to hide internal directories.