Documentation ¶
Overview ¶
Package auth contains implementation of authentication mechanism used to validate user credentials and create auth token.
Generated documentation is available at: https://godoc.org/github.com/RedHatInsights/insights-operator-ldapauth/auth
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-ldapauth/packages/auth/auth.html
Index ¶
Constants ¶
View Source
const NoAccessMessage = "User has no rights to access"
NoAccessMessage - Error message for user with no access
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate - validate user credentials and create auth token
func GetTokenPasswordFromEnv ¶
func GetTokenPasswordFromEnv() []byte
GetTokenPasswordFromEnv tries to read token password from the environment variable. Content of the variable (string) is converted into array of bytes to be usable.
Types ¶
Click to show internal directories.
Click to hide internal directories.