server

package
v0.0.0-...-261c3cc Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtForm

type JwtForm struct {
	Issuer  string `json:"iss"`
	Subject string `json:"sub"`
	// right now only one audience, but we could have more than one in the future
	Audience         string `json:"aud"`
	AuthorizingParty string `json:"azp"`
	Scope            string `json:"scope"`
	IssuedAt         int64  `json:"iat"`
	Expiry           int64  `json:"exp"`
}

type Server

type Server struct {
	Addr     string
	Config   config.Config
	Key      *rsa.PrivateKey
	Template *template.Template
	JWKS     string
}

func New

func New(addr string, cfg config.Config, key *rsa.PrivateKey, tmpl *template.Template, jwks string) (*Server, error)

func (*Server) ServeMux

func (s *Server) ServeMux() http.Server

Jump to

Keyboard shortcuts

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