basicauth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct{}

BasicAuth is a provider that ensures the request is authenticated with the configured username/password in the config('auth.username' and 'auth.password')

func New

func New() *BasicAuth

New returns a new BasicAuth provider

func (*BasicAuth) Auth

func (b *BasicAuth) Auth(cfg *viper.Viper, all providers.All) grpc_auth.AuthFunc

Auth returns an auth function that ensures the request is authenticated with the configured username/password in the config('auth.username' and 'auth.password')

Jump to

Keyboard shortcuts

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