package
1.6.18
Repository: https://github.com/contextgg/go-sdk.git
Documentation: pkg.go.dev

# Functions

AuthFromContext will load up the Introspect from the ctx.
AuthHandlerOptional will load up a user by a token.
LoadBasicAuth will load the secrets from disk.
MustReadSecret sets up a secret with a fallback value.
ReadSecret reads a secret from /var/openfaas/secrets or from env-var 'secret_mount_path' if set.
VerifyBasicAuth checks the request basic auth against our creds.

# Variables

ErrBasicAuthNotSupplied when the request doesn't have creds.
ErrCredsNotSupplied when the server doesn't supply creds.
ErrNoAuth when no auth has been found.
ErrPasswordNotEqual when the password in the request doesn't equal the expected.
ErrUsernameNotEqual when the username in the request doesn't equal the expected.

# Structs

BasicAuthCredentials for credentials.