Documentation ¶
Overview ¶
Package authtest provides helper functionality for testing authentication with Quarterdeck as simply as possible. This package focuses primarily on the issuance and verification of JWT tokens rather than on providing mocking behavior the whole API.
Index ¶
Constants ¶
View Source
const ( Audience = "http://127.0.0.1" Issuer = "http://127.0.0.1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server implements an endpoint to host JWKS public keys and also provides simple functionality to create access and refresh tokens that would be authenticated.
func NewServer ¶
NewServer starts and returns a new authtest server. The caller should call Close when finished, to shut it down.
func (*Server) CreateAccessToken ¶
Click to show internal directories.
Click to hide internal directories.