common

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	AccountID() string
	AccountUUID() string
	Secret() string
	Salt() string
	Mechanism() string
}

type AuthDAO

type AuthDAO interface {
	Find(user string, mechanism string) (Auth, error)
}

type AuthInfo

type AuthInfo struct {
	StatusOK     bool
	StatusText   string
	AccountID    string
	AccountUUID  string
	AccountRoles string
}

func (*AuthInfo) Message

func (inst *AuthInfo) Message() string

func (*AuthInfo) Principal

func (inst *AuthInfo) Principal() lang.Object

func (*AuthInfo) Roles

func (inst *AuthInfo) Roles() string

func (*AuthInfo) Success

func (inst *AuthInfo) Success() bool

type AuthToken

type AuthToken struct {
	UserName string
	Secret   string
	AuthType string
}

func (*AuthToken) Credentials

func (inst *AuthToken) Credentials() lang.Object

func (*AuthToken) Mechanism

func (inst *AuthToken) Mechanism() string

func (*AuthToken) Principal

func (inst *AuthToken) Principal() lang.Object

type SimpleAuthWrapper

type SimpleAuthWrapper struct {
	Mechanism string
	Inner     auths.AuthenticationProvider
}

func (*SimpleAuthWrapper) Authenticate

func (*SimpleAuthWrapper) Name

func (inst *SimpleAuthWrapper) Name() string

func (*SimpleAuthWrapper) Supports

func (inst *SimpleAuthWrapper) Supports(t auths.AuthenticationToken) bool

Jump to

Keyboard shortcuts

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