Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeV0Handler ¶
func AuthorizeV0Handler(apiVersion auth.Version) http.HandlerFunc
AuthorizeV0Handler -- Handle authentication using property file. For testing only
func LoginV0Handler ¶
func LoginV0Handler(config *types.ConfigMap) http.HandlerFunc
LoginV0Handler -- Handle auth using property file. For testing only
func ValidationHandler ¶
func ValidationHandler(apiVersion auth.Version) http.HandlerFunc
ValidationHandler validates the token
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Status int `json:"status,omitempty"` ErrorMessage string `json:"error,omitempty"` }
ErrorResponse is
type JSONResponse ¶
type JSONResponse struct {
// contains filtered or unexported fields
}
JSONResponse defines a JSON response sent to client
func (*JSONResponse) Write ¶
func (jr *JSONResponse) Write(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.