noauth

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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(l *log.Logger) *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