Documentation ¶
Index ¶
- Variables
- func Access(accessLogger AccessLogger, host string, port uint32) func(http.Handler) *AccessHandler
- func NewUaaClient(c *http.Client, address, id, secret string) uaaClient
- type AccessHandler
- type AccessLog
- type AccessLogger
- type AdminAccessAuthorizer
- type AuthData
- type DefaultAccessLogger
- type LogAccessAuthorizer
- type UaaClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAuthTokenProvided = errors.New("Error: Authorization not provided") ErrInvalidAuthToken = errors.New("Error: Invalid authorization") )
Functions ¶
func Access ¶
func Access(accessLogger AccessLogger, host string, port uint32) func(http.Handler) *AccessHandler
func NewUaaClient ¶
Types ¶
type AccessHandler ¶
type AccessHandler struct {
// contains filtered or unexported fields
}
func (*AccessHandler) ServeHTTP ¶
func (h *AccessHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type AccessLog ¶
type AccessLog struct {
// contains filtered or unexported fields
}
func NewAccessLog ¶
type AccessLogger ¶
type AdminAccessAuthorizer ¶
func NewAdminAccessAuthorizer ¶
func NewAdminAccessAuthorizer(disableAccessControl bool, client UaaClient) AdminAccessAuthorizer
type AuthData ¶
type AuthData struct {
Scope []string `json:"scope"`
}
func (*AuthData) HasPermission ¶
type DefaultAccessLogger ¶
type DefaultAccessLogger struct {
// contains filtered or unexported fields
}
func NewAccessLogger ¶
func NewAccessLogger(writer io.Writer) *DefaultAccessLogger
type LogAccessAuthorizer ¶
TODO: We don't need to return an error and a status code. One will suffice.
func NewLogAccessAuthorizer ¶
func NewLogAccessAuthorizer(c *http.Client, disableAccessControl bool, apiHost string) LogAccessAuthorizer
Click to show internal directories.
Click to hide internal directories.