auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASIC_AUTH_PASSWORD_ENV = "BASIC_AUTH_PASSWORD"
)

Variables

View Source
var (
	FORBIDDEN_ERROR = &errors.ErrorResponse{
		Errors: []errors.ErrorObject{
			{
				Status: http.StatusForbidden,
				Title:  "Forbidden",
			},
		},
	}

	UNAUTHORIZED_ERROR = &errors.ErrorResponse{
		Errors: []errors.ErrorObject{
			{
				Status: http.StatusUnauthorized,
				Title:  "Unauthorized",
			},
		},
	}
)

Functions

func HandleBasicAuth

func HandleBasicAuth(r *http.Request) (clientId string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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