oidc

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port string, shouldLog bool) (*Server, error)

Creates a new fake-oidc on the specified port. If the port is 0, the server will bind an available port. The port should not be prefixed with a colon.

func (*Server) Close

func (s *Server) Close() error

Closes the HTTP server.

func (*Server) GetBoundAddr

func (s *Server) GetBoundAddr() string

Returns the address the server is running on. Useful if you've bound a random port.

func (*Server) Open

func (s *Server) Open() error

Begins running the HTTP server. You probably want to call this in a Goroutine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL