auth

package
v1.81.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewApiKey added in v1.81.0

func GenerateNewApiKey() string

GenerateNewApiKey generates a 32 character API key. If the build environment is dev or stage the key will start with "dev_" or "stage_" respectively.

func GetApiKeyFromHeaders added in v1.81.0

func GetApiKeyFromHeaders(headers map[string]string) string

GetApiKeyFromHeaders checks if a bearer token is passed as part of the Authorization header and returns that key

Types

This section is empty.

Jump to

Keyboard shortcuts

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