Documentation ¶
Index ¶
- Constants
- Variables
- func IsAdminMiddleware(next http.Handler) http.Handler
- func SaveConfig(c *Context) error
- func StartServer(httpPort, httpsPort int, serverType string, storage storage.Iface, c *Context, ...)
- type AppClient
- type Apps
- type AuthMethodsProvider
- type AuthMethodsResponse
- type Context
- type ContextRequest
- type ContextSetupResponse
- type CustomValue
- type FactorRequest
- type GeneralSetupRequest
- type JWTKeys
- type JwtHeader
- type LicenseResponse
- type NewUserRequest
- type OIDCCallback
- type SAML
- type SAMLCallback
- type SAMLSetup
- type SCIM
- type SCIMSetup
- type Storage
- type UserInfoResponse
- type UsersResponse
Constants ¶
View Source
const ADMIN_USER = "admin"
View Source
const SERVER_TYPE_OBSERVABILITY = "observability"
View Source
const SERVER_TYPE_VPN = "vpn"
View Source
const SETUP_CODE_FILE = "setup-code.txt"
View Source
const UPGRADESERVER_URI = "127.0.0.1:8081"
Variables ¶
View Source
var (
TLSWaiterCompleted bool
)
Functions ¶
func SaveConfig ¶
Types ¶
type AuthMethodsProvider ¶
type AuthMethodsResponse ¶
type AuthMethodsResponse struct { LocalAuthDisabled bool `json:"localAuthDisabled"` OIDCProviders []AuthMethodsProvider `json:"oidcProviders"` }
type Context ¶
type Context struct { AppDir string `json:"appDir,omitempty"` ServerType string `json:"serverType,omitempty"` SetupCompleted bool `json:"setupCompleted"` Hostname string `json:"hostname,omitempty"` Protocol string `json:"protocol,omitempty"` JWTKeys *JWTKeys `json:"jwtKeys,omitempty"` JWTKeysKID string `json:"jwtKeysKid,omitempty"` OIDCProviders []oidc.OIDCProvider `json:"oidcProviders,omitempty"` LocalAuthDisabled bool `json:"disableLocalAuth,omitempty"` EnableTLS bool `json:"enableTLS,omitempty"` RedirectToHttps bool `json:"redirectToHttps,omitempty"` EnableOIDCTokenRenewal bool `json:"enableOIDCTokenRenewal,omitempty"` OIDCStore *oidcstore.Store `json:"oidcStore,omitempty"` UserStore *users.UserStore `json:"users,omitempty"` OIDCRenewal *oidcrenewal.Renewal `json:"oidcRenewal,omitempty"` LoginAttempts login.Attempts `json:"loginAttempts,omitempty"` LicenseUserCount int `json:"licenseUserCount,omitempty"` CloudType string `json:"cloudType,omitempty"` TokenRenewalTimeMinutes int `json:"tokenRenewalTimeMinutes,omitempty"` LogLevel int `json:"loglevel,omitempty"` SCIM *SCIM `json:"scim,omitempty"` SAML *SAML `json:"saml,omitempty"` Apps *Apps `json:"apps,omitempty"` Storage *Storage `json:"storage,omitempty"` }
func NewContext ¶
func (*Context) GetUserFromRequest ¶
func (*Context) ReloadConfig ¶
func (c *Context) ReloadConfig()
type ContextRequest ¶
type ContextSetupResponse ¶
type CustomValue ¶
type CustomValue string
type FactorRequest ¶
type GeneralSetupRequest ¶
type JWTKeys ¶
type JWTKeys struct { PrivateKey *rsa.PrivateKey `json:"privateKey,omitempty"` PublicKey *rsa.PublicKey `json:"publicKey,omitempty"` }
type LicenseResponse ¶
type NewUserRequest ¶
type OIDCCallback ¶
type SAMLCallback ¶
type UserInfoResponse ¶
type UsersResponse ¶
type UsersResponse struct { ID string `json:"id"` Login string `json:"login"` Role string `json:"role"` OIDCID string `json:"oidcID"` SAMLID string `json:"samlID"` Provisioned bool `json:"provisioned"` Suspended bool `json:"suspended"` ConnectionsDisabledOnAuthFailure bool `json:"connectionsDisabledOnAuthFailure"` LastTokenRenewal time.Time `json:"lastTokenRenewal,omitempty"` LastLogin string `json:"lastLogin"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.