Documentation ¶
Index ¶
- type Auth
- func (u *Auth) Authenticate(ctx context.Context, m models.AuthModel) (*models.User, error)
- func (u *Auth) OnBoardUser(ctx context.Context, user *models.User) error
- func (u *Auth) PostAuthenticate(ctx context.Context, user *models.User) error
- func (u *Auth) SearchUser(ctx context.Context, username string) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { sync.Mutex auth.DefaultAuthenticateHelper // contains filtered or unexported fields }
Auth is the implementation of AuthenticateHelper to access uaa for authentication.
func (*Auth) Authenticate ¶
Authenticate ...
func (*Auth) OnBoardUser ¶
OnBoardUser will check if a user exists in user table, if not insert the user and put the id in the pointer of user model, if it does exist, return the user's profile.
func (*Auth) PostAuthenticate ¶
PostAuthenticate will check if user exists in DB, if not on Board user, if he does, update the profile.
Click to show internal directories.
Click to hide internal directories.