auth

package
v0.0.0-...-bfdbfb3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationMiddleware

type AuthenticationMiddleware struct {
	// contains filtered or unexported fields
}

AuthenticationMiddleware provides authentication middlewares.

func NewAuthenticationMiddleware

func NewAuthenticationMiddleware() *AuthenticationMiddleware

NewAuthenticationMiddleware returns a new authentication middleware.

func (*AuthenticationMiddleware) BasicAuth

BasicAuth adds the Authorization header for the basic authorization request.

func (*AuthenticationMiddleware) BearerToken

BearerToken adds the Authorization header for the bearer token authorization request.

type BasicAuthConfig

type BasicAuthConfig struct {
	UserName string
	Password string
}

BasicAuthConfig is the config for basicAuth authorization.

type BearerTokenConfig

type BearerTokenConfig struct {
	BearerToken string
}

BearerTokenConfig is the config for Bearer token authorization.

Jump to

Keyboard shortcuts

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