authn

package
v0.0.0-...-8194725 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBearerToken

func GetBearerToken(req *http.Request) (string, bool)

Types

type StaticToken

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

func NewStaticToken

func NewStaticToken(userName, adminToken string, groups ...string) *StaticToken

func (*StaticToken) AuthenticateRequest

func (a *StaticToken) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)

Jump to

Keyboard shortcuts

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