-
Notifications
You must be signed in to change notification settings - Fork 424
Closed
Description
Currently it's pretty hard to write a unit test for this package. Consider adding a wrapper around https://pkg.go.dev/net/http/httptest that spins up a minimal server.
package oidctest
type Server struct {
PublicKeys []crypto.PublicKey
SigningKey crypto.PrivateKey
// ... other configuration
}
type Claims struct {
// ... fields
}
func (s *Server) Start()
func (s *Server) Close()
func (s *Server) NewIDToken(claims *Claims) string
func (s *Server) NewProvider() *oidc.Provider
Metadata
Metadata
Assignees
Labels
No labels