Documentation ¶
Index ¶
- type AuthHandler
- func (authHandler *AuthHandler) LivenessCheck(responseWriter http.ResponseWriter, request *http.Request)
- func (authHandler *AuthHandler) ReadinessCheck(responseWriter http.ResponseWriter, request *http.Request)
- func (authHandler *AuthHandler) SignIn(responseWriter http.ResponseWriter, request *http.Request)
- func (authHandler *AuthHandler) SignUp(responseWriter http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct{}
AuthHandler contains the items common to all auth handler functions
func NewAuthHandler ¶
func NewAuthHandler() *AuthHandler
NewAuthHandler returns a pointer to a AuthHandler with the logger passed as a parameter
func (*AuthHandler) LivenessCheck ¶
func (authHandler *AuthHandler) LivenessCheck(responseWriter http.ResponseWriter, request *http.Request)
LivenessCheck determine when the application needs to be restarted
func (*AuthHandler) ReadinessCheck ¶
func (authHandler *AuthHandler) ReadinessCheck(responseWriter http.ResponseWriter, request *http.Request)
ReadinessCheck verifies that the application is ready to accept requests
func (*AuthHandler) SignIn ¶
func (authHandler *AuthHandler) SignIn(responseWriter http.ResponseWriter, request *http.Request)
SignIn will fetch the acces token from Keycloak and return user data
func (*AuthHandler) SignUp ¶
func (authHandler *AuthHandler) SignUp(responseWriter http.ResponseWriter, request *http.Request)
SignUp will register a new user in keycloak and in our user database
Click to show internal directories.
Click to hide internal directories.