server

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts Options) (*handler, error)

func NewTesting

func NewTesting(t testing.TB) *handlerTesting

Types

type HandlerOption added in v0.0.8

type HandlerOption func(*HandlerOptions)

func WithIssuer added in v0.0.8

func WithIssuer(issuer string) HandlerOption

type HandlerOptions added in v0.0.8

type HandlerOptions struct {
	Issuer string
}

type OpHandler added in v0.0.7

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

func NewDefault added in v0.0.6

func NewDefault(setters ...HandlerOption) (*OpHandler, error)

func (*OpHandler) Close added in v0.0.7

func (h *OpHandler) Close()

func (*OpHandler) GetClientID added in v0.0.7

func (h *OpHandler) GetClientID() string

func (*OpHandler) GetClientSecret added in v0.0.7

func (h *OpHandler) GetClientSecret() string

func (*OpHandler) GetRedirectURI added in v0.0.7

func (h *OpHandler) GetRedirectURI() string

func (*OpHandler) GetToken added in v0.0.7

func (h *OpHandler) GetToken() (*oauth2.Token, error)

func (*OpHandler) GetURL added in v0.0.7

func (h *OpHandler) GetURL() string

func (*OpHandler) RotateKeys added in v0.0.7

func (h *OpHandler) RotateKeys() error

type Options

type Options struct {
	Address      string
	Port         int
	Issuer       string
	ClientID     string
	ClientSecret string
	RedirectURI  string
	// contains filtered or unexported fields
}

func (Options) Validate

func (opts Options) Validate() error

Jump to

Keyboard shortcuts

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