Documentation ¶
Index ¶
- Constants
- func Anonymous(*http.Request) (bool, *string)
- func BasicAuth(r *http.Request) (bool, *string)
- func Initialize()
- func Middleware(authenticators []authenticatorMatchers) mux.MiddlewareFunc
- func UAA(request *http.Request) (bool, *string)
- type Authenticator
- type MatchBuilder
- type MiddlewareBuilder
Constants ¶
View Source
const PermissionsUrl = "%s/v3/service_instances/%s/permissions"
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
func Middleware ¶
func Middleware(authenticators []authenticatorMatchers) mux.MiddlewareFunc
Types ¶
type Authenticator ¶
Authenticator an authenticator function signature, it should return if a request is authenticated and if not, which challenges, if any, to return to the client
type MatchBuilder ¶
type MatchBuilder interface { MatchPrefix(pathPrefix string) MatchBuilder AuthenticateWith(authenticator Authenticator) MiddlewareBuilder }
MatchBuilder interface to build matching rules to apply a specific authentication method
func MatchPrefix ¶
func MatchPrefix(pathPrefix string) MatchBuilder
type MiddlewareBuilder ¶
type MiddlewareBuilder interface { MatchPrefix(pathPrefix string) MatchBuilder Default(authenticator Authenticator) MiddlewareBuilder Build() mux.MiddlewareFunc }
MiddlewareBuilder interface for security middleware builder functions
Click to show internal directories.
Click to hide internal directories.