auth

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 3 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, i vlauth.IFace) error

Register auth provider

func UnRegister

func UnRegister(name string)

UnRegister authenticator

Types

type Manager

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

Manager auth

func NewManager

func NewManager(p []string, allowAnonymous bool) (*Manager, error)

NewManager new auth manager

func (*Manager) ACL

func (m *Manager) ACL(clientID, user, topic string, access vlauth.AccessType) error

ACL check permissions

func (*Manager) AllowAnonymous added in v0.0.4

func (m *Manager) AllowAnonymous() error

AllowAnonymous allow anonymous connections

func (*Manager) Password

func (m *Manager) Password(clientID, user, password string) error

Password authentication

Source Files

Jump to

Keyboard shortcuts

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