Documentation ¶
Index ¶
- type Diagnostic
- type Service
- func (s *Service) Authenticate(username, password string) (auth.User, error)
- func (s *Service) Close() error
- func (s *Service) GrantSubscriptionAccess(token, db, rp string) error
- func (s *Service) ListSubscriptionTokens() ([]string, error)
- func (s *Service) Open() error
- func (s *Service) RevokeSubscriptionAccess(token string) error
- func (s *Service) SubscriptionUser(token string) (auth.User, error)
- func (s *Service) User(username string) (auth.User, error)
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 ¶
Return a user will all privileges and given username. NOTE: Password is ignored as no real authentication is performed.
func (*Service) GrantSubscriptionAccess ¶
func (*Service) ListSubscriptionTokens ¶
func (*Service) RevokeSubscriptionAccess ¶
func (*Service) SubscriptionUser ¶
Return a user will all privileges.
Click to show internal directories.
Click to hide internal directories.