auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (*Manager) Password

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

Password authentication

Jump to

Keyboard shortcuts

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