Documentation
¶
Index ¶
- type CustomPeopleAPI
- type Server
- func (s *Server) GenerateSigningKey(keySize int, keyID string) error
- func (s Server) KeyID() string
- func (s Server) KeySetProvider() keyset.Provider
- func (s *Server) LoadKeys(dir string) error
- func (s Server) PrivateKey() *rsa.PrivateKey
- func (s Server) PublicKey() *rsa.PublicKey
- func (s Server) PublicKeyPEM() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomPeopleAPI ¶ added in v0.7.1
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 (*Server) GenerateSigningKey ¶
func (Server) KeySetProvider ¶
func (Server) PrivateKey ¶
func (s Server) PrivateKey() *rsa.PrivateKey
func (Server) PublicKeyPEM ¶
Click to show internal directories.
Click to hide internal directories.