Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash compares a plain text password with a hashed password
func HashPassword ¶
HashPassword hashes a plain text password using bcrypt
func NewConnector ¶
NewConnector creates a connector
Types ¶
type AuthError ¶
type AuthError struct {
// contains filtered or unexported fields
}
AuthError represents an authentication error
type Config ¶
type Config struct { AuthSQL string AuthConnector string IdentitySQL string //maps identifier to subject IdentityConnector string MaxAttempts int // contains filtered or unexported fields }
Config represents the custom configuration
type Identity ¶
type Identity struct {
ID string `sqlx:"id" aerospike:"id,pk=true"`
}
Identity represents the identity
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a custom auth service
Click to show internal directories.
Click to hide internal directories.