Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitHeaderConnector ¶
func InitHeaderConnector(header string) auth.AuthConnector
InitHeaderConnector initializes Header connector configuration
Types ¶
type HeaderAuthConnector ¶
type HeaderAuthConnector struct {
// contains filtered or unexported fields
}
HeaderAuthConnector represents a connector that implements interface of auth connector
func (HeaderAuthConnector) Authenticate ¶
func (h HeaderAuthConnector) Authenticate(next http.Handler) http.Handler
Authenticate retrieves auth header from request and returns its value
func (HeaderAuthConnector) RetrieveUserID ¶
func (h HeaderAuthConnector) RetrieveUserID(r http.Request) string
RetrieveUserID retrieves user from header
Click to show internal directories.
Click to hide internal directories.