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(headers bool) 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"`
Presets presets.Presets `json:"presets,omitempty"`
CookieSecret string `json:"cookie_secret"`
UserinfoExtraClaims map[string]string `json:"userinfo_extra_claims,omitempty"`
PeopleStore *people.StoreSettings `json:"people_store,omitempty"`
OtpauthStore *otpauth.StoreSettings `json:"otpauth_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"`
Setup2FATemplate string `json:"setup_2fa_template,omitempty"`
ResetPasswordTemplate string `json:"reset_password_template,omitempty"`
ChangePasswordTemplate string `json:"change_password_template,omitempty"`
PasswordResetMailTemplate string `json:"password_reset_mail_template,omitempty"`
RevocationStore *revocation.StoreSettings `json:"revocation_store,omitempty"`
EnableTokenRevocation bool `json:"enable_token_revocation,omitempty"`
KeysTTL int `json:"keys_ttl,omitempty"`
Roles oauth2.RoleMappings `json:"roles,omitempty"`
AdministratorRole string `json:"administrator_role,omitempty"`
Mail mail.MailSettings `json:"mail,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.