Documentation
¶
Index ¶
- Variables
- func Authenticate(db *database.Database, config *AuthConfig) func(next http.Handler) http.Handler
- func AuthorizeBlockedUser() func(http.Handler) http.Handler
- func AuthorizeRole(roles []string) func(http.Handler) http.Handler
- func Backup(catalystStorage *storage.Storage, c *database.Config, writer io.Writer) error
- func GetVersion() string
- func Restore(ctx context.Context, catalystStorage *storage.Storage, db *database.Database, ...) error
- type AuthConfig
- type Config
- type Server
- type WriterAtBuffer
Constants ¶
This section is empty.
Variables ¶
View Source
var VERSION string
Functions ¶
func Authenticate ¶
func GetVersion ¶
func GetVersion() string
Types ¶
type AuthConfig ¶
type AuthConfig struct { OIDCIssuer string OAuth2 *oauth2.Config OIDCClaimUsername string OIDCClaimEmail string // OIDCClaimGroups string OIDCClaimName string AuthBlockNew bool AuthDefaultRoles []role.Role AuthAdminUsers []string // contains filtered or unexported fields }
func (*AuthConfig) Verifier ¶
func (c *AuthConfig) Verifier(ctx context.Context) (*oidc.IDTokenVerifier, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.