Documentation ¶
Index ¶
- Constants
- type Request
- type SimpleAuthenticationChecker
- func (sac *SimpleAuthenticationChecker) Check(ctx context.Context, userNameRequest string, secretInfo []byte) (ok bool, userName string, err *mft.Error)
- func (sac *SimpleAuthenticationChecker) FromBytes(data []byte) (err *mft.Error)
- func (sac *SimpleAuthenticationChecker) Load() (err *mft.Error)
- func (sac *SimpleAuthenticationChecker) Save() (err *mft.Error)
- func (sac *SimpleAuthenticationChecker) ToBytes() (data []byte, err *mft.Error)
- func (sac *SimpleAuthenticationChecker) Type() string
- type User
Constants ¶
View Source
const TypeAT string = "simple"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Pwd string `json:"pwd"`
}
func (*Request) ToSecretInfo ¶ added in v0.0.2
func (r *Request) ToSecretInfo() json.RawMessage
type SimpleAuthenticationChecker ¶
type SimpleAuthenticationChecker struct { storage.SaveProto Users map[string]User `json:"users,omitempty"` }
func (*SimpleAuthenticationChecker) FromBytes ¶
func (sac *SimpleAuthenticationChecker) FromBytes(data []byte) (err *mft.Error)
func (*SimpleAuthenticationChecker) Load ¶ added in v0.0.4
func (sac *SimpleAuthenticationChecker) Load() (err *mft.Error)
func (*SimpleAuthenticationChecker) Save ¶ added in v0.0.4
func (sac *SimpleAuthenticationChecker) Save() (err *mft.Error)
func (*SimpleAuthenticationChecker) ToBytes ¶
func (sac *SimpleAuthenticationChecker) ToBytes() (data []byte, err *mft.Error)
func (*SimpleAuthenticationChecker) Type ¶
func (sac *SimpleAuthenticationChecker) Type() string
Click to show internal directories.
Click to hide internal directories.