Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
func CurrentUser(w http.ResponseWriter, r *http.Request)
func NewHydraClient ¶
func NewHydraClient() *auth.HydraClient
func SetHydraClient ¶
func SetHydraClient(newClient *auth.HydraClient)
Types ¶
type LoginResponse ¶
type LoginResponse struct { // Mandatory if success, nil otherwise Token *oauth2.Token `json:"token,omitempty"` // Mandatory if success, nil otherwise User *secu.User `json:"user,omitempty"` Success bool `json:"success"` // Mandatory if not success, nil otherwise Error *Error `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.