Documentation ¶
Index ¶
- Variables
- func Auth(app domain.Application, deviceType, username string, ...) (*domain.Session, error)
- func AuthAs(app domain.Application, deviceType, username string, meta map[string]string) (*domain.Session, error)
- func AutoRenew(s *domain.Session) (*domain.Session, error)
- func ChangePassword(user *domain.User, newPassword string, activeSession *domain.Session) error
- func Expire(s *domain.Session) error
- func OAuth(app domain.Application, deviceType, username, token, provider string, ...) (*domain.Session, error)
- func ValidateAuth(app domain.Application, username string, password []byte) error
- type Auther
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Auth ¶
func Auth(app domain.Application, deviceType, username string, password, newPassword []byte, meta map[string]string, session *domain.Session) (*domain.Session, error)
Auth wraps defaultInstance.Auth
func AuthAs ¶
func AuthAs(app domain.Application, deviceType, username string, meta map[string]string) (*domain.Session, error)
AuthAs wraps defaultInstance.AuthAs
func ChangePassword ¶
ChangePassword wraps defaultInstance.ChangePassword
func OAuth ¶
func OAuth(app domain.Application, deviceType, username, token, provider string, meta map[string]string) (*domain.Session, error)
OAuth wraps defaultInstance.OAuth
func ValidateAuth ¶
func ValidateAuth(app domain.Application, username string, password []byte) error
ValidateAuth wraps defaultInstance.ValidateAuth
Types ¶
type Auther ¶
type Auther interface { Auth(app domain.Application, deviceType, username string, password, newPassword []byte, meta map[string]string, session *domain.Session) (*domain.Session, error) AuthAs(app domain.Application, deviceType, username string, meta map[string]string) (*domain.Session, error) OAuth(app domain.Application, deviceType, username, oauthtoken, oauthprovider string, meta map[string]string) (*domain.Session, error) AutoRenew(s *domain.Session) (*domain.Session, error) Expire(s *domain.Session) error // ChangePassword changes a user's password for the passed newPassword. It will also immediately invalidate the // user's _other_ active sessions; that is, it will not invalidate the passed active session. If activeSession is // nil, _all_ the user's sessions will be invalidated. ChangePassword(user *domain.User, newPassword string, activeSession *domain.Session) error ValidateAuth(app domain.Application, username string, password []byte) error }
Click to show internal directories.
Click to hide internal directories.