github.com/pavlo67/common@v0.5.3/common/auth/keys.go (about) 1 package auth 2 3 import ( 4 "errors" 5 6 "github.com/pavlo67/common/common/joiner" 7 ) 8 9 const InterfaceKey joiner.InterfaceKey = "auth" 10 11 const IntefaceKeyAuthenticate joiner.InterfaceKey = "auth_authenticate" 12 const IntefaceKeySetCreds joiner.InterfaceKey = "auth_set_creds" 13 14 var ErrAuthRequired = errors.New("authorization required") 15 var ErrNotAuthenticated = errors.New("not authenticated") 16 17 var ErrPassword = errors.New("wrong password") 18 var ErrSignaturedKey = errors.New("wrong signatured key") 19 var ErrAuthSession = errors.New("wrong authorization session") 20 var ErrEncryptionType = errors.New("wrong encryption type") 21 var ErrIP = errors.New("wrong IP") 22 var ErrNoCreds = errors.New("no creds") 23 var ErrNoUser = errors.New("no user") 24 25 //var ErrBadIdentity = errors.New("bad identity")