Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrUnauthorized is returned when the attempted request is not authorized
Functions ¶
func HandleBasic ¶
func HandleBasic(username, password string) protocol.AuthenticationHandler
HandleBasic performs basic authentication for register listener request metadata
func HandleBearer ¶
func HandleBearer(token string) protocol.AuthenticationHandler
HandleBearer performs a bearer token comparison for register listener request metadata
func HandleBearerHashed ¶ added in v0.1.1
func HandleBearerHashed(hashedToken string) (protocol.AuthenticationHandler, error)
HandleBearerHashed performs a bearer token comparison for register listener request metadata It expects the token to have been pre-hashed using sha256 and encoded as a hexidecimal string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.