Documentation ¶
Overview ¶
Package irisauth implements Basic authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BcryptCost = 10
See https://godoc.org/golang.org/x/crypto/bcrypt#pkg-constants for more details.
Functions ¶
func New ¶
Basic returns a context.Handler that authenticates via Basic Auth. Writes an iris.StatusUnauthorized if authentication fails.
func NewSimpleBasic ¶
NewSimpleBasic returns *datastore.Simple built from userid, password.
func SecureCompare ¶
SecureCompare performs a constant time compare of two strings to limit timing attacks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.