Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashUserService ¶
type HashUserService struct { }
func (HashUserService) LoginUser ¶
func (us HashUserService) LoginUser(username string, plainPassword string) error
func (HashUserService) UniqueUser ¶
func (us HashUserService) UniqueUser(provider string, providerUserID string) (string, error)
type PlainUserService ¶
type PlainUserService struct { }
func (PlainUserService) UniqueUser ¶
func (us PlainUserService) UniqueUser(provider string, providerUserID string) (string, error)
type UserService ¶
UserService provides a function for creating a user from the given provider and providerUserID. The created user contains the global unique user ID that is used within your environment. user/hashuserservice is the most basic way to create a unique user by simply hashing both the provider and providerUserID. It would also be possible to load the user id from a DB using the provider and providerUserID as a key or just concatenate both strings.
Click to show internal directories.
Click to hide internal directories.