authentication

package
v0.0.0-...-e69eef7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Overview

Package authentication provides functionality for authentication.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(next http.HandlerFunc, apiKey string) http.HandlerFunc

Middleware works as a wrapper around http.HandlerFunc. It verifies that the caller provided a valid api secret when requesting a authenticated endpoint. This method is expecting the requests to contain a header with the format:

"Authorization: value".

Types

This section is empty.

Jump to

Keyboard shortcuts

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