auth

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthorized = errors.New("unauthorized")

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL