handlers

package
v0.0.0-...-0cec475 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL