Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
CurrentUser gets the current user or errors
Types ¶
type ClaimsOrToken ¶
type ClaimsOrToken struct { Claims *verifier.StandardClaims Token string }
ClaimsOrToken represents either claims found or and API token found
type Config ¶
type Config struct { Migrations *rice.Box Assets *rice.Box HostPort string DatabaseURL string ClientID string ClientSecret string BaseURL string SecretKey string Domains []string Setup func(config *SetupConfig) GetCurrentUser func(ctx context.Context, claimsOrToken *ClaimsOrToken) (interface{}, error) OnFirstUser func(ctx context.Context, claims *verifier.StandardClaims) error OnLogin func(ctx context.Context, claims *verifier.StandardClaims) error }
Config provides the configuration for the server
Click to show internal directories.
Click to hide internal directories.