authentication

package
v0.0.0-...-0da26dc Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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