Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { auth.DefaultAuthenticateHelper sync.Mutex Endpoint string SkipCertVerify bool AlwaysOnboard bool // contains filtered or unexported fields }
Auth implements HTTP authenticator the required attributes. The attribute Endpoint is the HTTP endpoint to which the POST request should be issued for authentication
func (*Auth) Authenticate ¶
Authenticate issues http POST request to Endpoint if it returns 200 the authentication is considered success.
func (*Auth) OnBoardUser ¶
OnBoardUser delegates to dao pkg to insert/update data in DB.
func (*Auth) PostAuthenticate ¶
PostAuthenticate generates the user model and on board the user.
Click to show internal directories.
Click to hide internal directories.