Documentation ¶
Index ¶
- Variables
- func Authenticate(r *http.Request, requestVars map[string]string) (string, error)
- func KeystoneMiddleware(next http.Handler) (http.Handler, error)
- func ProjectScopeForRequest(r *http.Request) (string, error)
- func TokenFrom(r *http.Request) *gopherpolicy.Token
- func UserForRequest(r *http.Request) (audittools.UserInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrForbidden = errors.New("forbidden")
)
Functions ¶
func Authenticate ¶
func KeystoneMiddleware ¶
Middleware Keystone token injector, also implements goslo policy checker
func ProjectScopeForRequest ¶
ProjectScopeForRequest helper for getting project id
func UserForRequest ¶
func UserForRequest(r *http.Request) (audittools.UserInfo, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.