Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyIAM ¶
type DummyIAM struct{}
DummyIAM implements a dummy IAM interface that does nothing.
func (*DummyIAM) Authenticate ¶
Authenticate is a no-op
type IAM ¶
type IAM interface { // Init is called with an auth config file as defined in the application config. The // implementation loads its specific configuration from this file when fabio starts. // This is referenced as a sperate file as it will contain auth data. Init(cfgfile string) error // Authenticate should authenticate a request and return any data needed for // Authorization or an error on failure. Authenticate(r *http.Request) (interface{}, error) // Authorize should check the authorization for a request. authData is the data // returned from the Authenticate call. If should return an error when unauthorized. Authorize(r *http.Request, authData interface{}) error }
IAM implements an identity and access management interface
Click to show internal directories.
Click to hide internal directories.