noauth

package
v1.7.0-rc6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 1 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic added in v1.4.0

type Diagnostic interface {
	FakedUserAuthentication(username string)
	FakedSubscriptionUserToken()
}

type Service

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

Provide an implentation of an Authentication service. NOTE: This service provides no real authentication but rather returns admin users for all requests.

func NewService

func NewService(d Diagnostic) *Service

func (*Service) Authenticate

func (s *Service) Authenticate(username, password string) (auth.User, error)

Return a user will all privileges and given username. NOTE: Password is ignored as no real authentication is performed.

func (*Service) Close

func (s *Service) Close() error

func (*Service) GrantSubscriptionAccess

func (s *Service) GrantSubscriptionAccess(token, db, rp string) error

func (*Service) ListSubscriptionTokens

func (s *Service) ListSubscriptionTokens() ([]string, error)

func (*Service) Open

func (s *Service) Open() error

func (*Service) RevokeSubscriptionAccess

func (s *Service) RevokeSubscriptionAccess(token string) error

func (*Service) SubscriptionUser

func (s *Service) SubscriptionUser(token string) (auth.User, error)

Return a user will all privileges.

func (*Service) User

func (s *Service) User(username string) (auth.User, error)

Return a user will all privileges and given username.

Jump to

Keyboard shortcuts

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