Documentation ¶
Index ¶
- type App
- type AuthnMiddleware
- func (AuthnMiddleware) CaddyModule() caddy.ModuleInfo
- func (m *AuthnMiddleware) Provision(ctx caddy.Context) error
- func (m *AuthnMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, _ caddyhttp.Handler) error
- func (m *AuthnMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)
- func (m *AuthnMiddleware) Validate() error
- type AuthzMiddleware
- func (m AuthzMiddleware) Authenticate(w http.ResponseWriter, r *http.Request) (caddyauth.User, bool, error)
- func (AuthzMiddleware) CaddyModule() caddy.ModuleInfo
- func (m *AuthzMiddleware) Provision(ctx caddy.Context) error
- func (m *AuthzMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)
- func (m *AuthzMiddleware) Validate() error
- type SecretsManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Name string `json:"-"` Config *authcrunch.Config `json:"config,omitempty"` SecretsManagersRaw []json.RawMessage `json:"secrets_managers,omitempty" caddy:"namespace=security.secrets inline_key=driver"` // contains filtered or unexported fields }
App implements security manager.
func (App) CaddyModule ¶
func (App) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
type AuthnMiddleware ¶
type AuthnMiddleware struct { RouteMatcher string `json:"route_matcher,omitempty" xml:"route_matcher,omitempty" yaml:"route_matcher,omitempty"` PortalName string `json:"portal_name,omitempty" xml:"portal_name,omitempty" yaml:"portal_name,omitempty"` // contains filtered or unexported fields }
AuthnMiddleware implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0, SAML Authentication.
func (AuthnMiddleware) CaddyModule ¶
func (AuthnMiddleware) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*AuthnMiddleware) Provision ¶
func (m *AuthnMiddleware) Provision(ctx caddy.Context) error
Provision provisions Authenticator.
func (*AuthnMiddleware) ServeHTTP ¶
func (m *AuthnMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, _ caddyhttp.Handler) error
ServeHTTP serves authentication portal.
func (*AuthnMiddleware) UnmarshalCaddyfile ¶
func (m *AuthnMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)
UnmarshalCaddyfile unmarshals a caddyfile.
func (*AuthnMiddleware) Validate ¶
func (m *AuthnMiddleware) Validate() error
Validate implements caddy.Validator.
type AuthzMiddleware ¶
type AuthzMiddleware struct { RouteMatcher string `json:"route_matcher,omitempty" xml:"route_matcher,omitempty" yaml:"route_matcher,omitempty"` GatekeeperName string `json:"gatekeeper_name,omitempty" xml:"gatekeeper_name,omitempty" yaml:"gatekeeper_name,omitempty"` // contains filtered or unexported fields }
AuthzMiddleware authorizes access to endpoints based on the presense and content of JWT token.
func (AuthzMiddleware) Authenticate ¶
func (m AuthzMiddleware) Authenticate(w http.ResponseWriter, r *http.Request) (caddyauth.User, bool, error)
Authenticate authorizes access based on the presense and content of authorization token.
func (AuthzMiddleware) CaddyModule ¶
func (AuthzMiddleware) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*AuthzMiddleware) Provision ¶
func (m *AuthzMiddleware) Provision(ctx caddy.Context) error
Provision provisions Authorizer.
func (*AuthzMiddleware) UnmarshalCaddyfile ¶
func (m *AuthzMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)
UnmarshalCaddyfile unmarshals caddyfile.
func (*AuthzMiddleware) Validate ¶
func (m *AuthzMiddleware) Validate() error
Validate implements caddy.Validator.
Source Files ¶
- app.go
- caddyfile.go
- caddyfile_authn.go
- caddyfile_authn_cookie.go
- caddyfile_authn_crypto.go
- caddyfile_authn_misc.go
- caddyfile_authn_transform.go
- caddyfile_authn_ui.go
- caddyfile_authz.go
- caddyfile_authz_acl.go
- caddyfile_authz_acl_shortcuts.go
- caddyfile_authz_bypass.go
- caddyfile_authz_crypto.go
- caddyfile_authz_inject.go
- caddyfile_authz_misc.go
- caddyfile_credentials.go
- caddyfile_identity.go
- caddyfile_identity_provider.go
- caddyfile_identity_store.go
- caddyfile_messaging.go
- caddyfile_plugin_authn.go
- caddyfile_plugin_authz.go
- caddyfile_secrets.go
- caddyfile_sso_provider.go
- caddyfile_user.go
- caddyfile_user_registration.go
- caddyfile_utils.go
- plugin_authn.go
- plugin_authz.go