Documentation
¶
Index ¶
Constants ¶
View Source
const ( SessionName = "session" SessionKeyExpires = "expires" SessionKeyUsername = "user_name" SessionKeyGroups = "groups" )
View Source
const ( ContextKeyUsername contextKey = iota ContextKeyGroups ContextKeyPortalDoc )
Variables ¶
This section is empty.
Functions ¶
func Bearer ¶
Bearer validates a Bearer token and adds the corresponding username to the context if it checks out. It lets the request through regardless (this is so that failures can be logged).
func GroupsIntersect ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.