settings

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPeopleAPI added in v0.7.1

type CustomPeopleAPI struct {
	FilterParam     string            `json:"filter_param"`
	Attributes      map[string]string `json:"attributes"`
	FixedAttributes map[string]string `json:"fixed_attributes"`
}

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]CustomPeopleAPI        `json:"people_api_custom_versions,omitempty"`
	PeopleAPIRequireAuthN   bool                              `json:"people_api_require_authn,omitempty"`
	LoginTemplate           string                            `json:"login_template,omitempty"`
	LogoutTemplate          string                            `json:"logout_template,omitempty"`
	TRLStore                *trl.StoreSettings                `json:"trl_store,omitempty"`
	KeysTTL                 int                               `json:"keys_ttl,omitempty"`
	Roles                   oauth2.RoleMappings               `json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func NewDefault

func NewDefault(port int) *Server

func (*Server) GenerateSigningKey

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

func (Server) KeyID

func (s Server) KeyID() string

func (Server) KeySetProvider

func (s Server) KeySetProvider() keyset.Provider

func (*Server) LoadKeys

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

func (Server) PrivateKey

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

func (Server) PublicKey

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

func (Server) PublicKeyPEM

func (s Server) PublicKeyPEM() string

Jump to

Keyboard shortcuts

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