Documentation ¶
Index ¶
- 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) 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 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 (*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) RevokeSubscriptionAccess ¶
func (*Service) SubscriptionUser ¶
Return a user will all privileges.
Click to show internal directories.
Click to hide internal directories.