settings

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 13 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 {
	Issuer                  string                            `json:"issuer"`
	Port                    int                               `json:"port"`
	Title                   string                            `json:"title,omitempty"`
	Users                   map[string]people.AuthenticPerson `json:"users,omitempty"`
	Key                     string                            `json:"key"`
	AdditionalKeys          []string                          `json:"additional_keys,omitempty"`
	Clients                 map[string]clients.Client         `json:"clients,omitempty"`
	ClientStore             *clients.StoreSettings            `json:"client_store,omitempty"`
	ExtraScope              string                            `json:"extra_scope,omitempty"`
	AccessTokenExtraClaims  map[string]string                 `json:"access_token_extra_claims,omitempty"`
	AccessTokenTTL          int                               `json:"access_token_ttl"`
	RefreshTokenTTL         int                               `json:"refresh_token_ttl"`
	IDTokenTTL              int                               `json:"id_token_ttl"`
	IDTokenExtraClaims      map[string]string                 `json:"id_token_extra_claims,omitempty"`
	SessionSecret           string                            `json:"session_secret"`
	SessionName             string                            `json:"session_name"`
	SessionTTL              int                               `json:"session_ttl"`
	PeopleStore             *people.StoreSettings             `json:"people_store,omitempty"`
	DisableAPI              bool                              `json:"disable_api,omitempty"`
	PeopleAPICustomVersions map[string]map[string]string      `json:"people_api_custom_versions,omitempty"`
	PeopleAPIRequireAuthN   bool                              `json:"people_api_require_authn,omitempty"`
	LoginTemplate           string                            `json:"login_template,omitempty"`
	TRLStore                *trl.StoreSettings                `json:"trl_store,omitempty"`
	// contains filtered or unexported fields
}

func NewDefault

func NewDefault(port int) *Server

func (Server) AllKeys

func (s Server) AllKeys() map[string]any

func (*Server) GenerateSigningKey added in v0.6.0

func (s *Server) GenerateSigningKey(keySize int, keyID string) error

func (Server) KeyID

func (s Server) KeyID() string

func (*Server) LoadKeys

func (s *Server) LoadKeys(basePath string) error

func (Server) PrivateKey

func (s Server) PrivateKey() *rsa.PrivateKey

func (Server) PublicKey

func (s Server) PublicKey() *rsa.PublicKey

Jump to

Keyboard shortcuts

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