Documentation ¶
Index ¶
- func Auth(res http.ResponseWriter, req *http.Request)
- func AuthURL(res http.ResponseWriter, req *http.Request)
- func GetUserFromRequest(req *http.Request) (*userutils.User, error)
- func Logout(res http.ResponseWriter, req *http.Request)
- func Middleware(next http.Handler) http.Handler
- type UserContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(res http.ResponseWriter, req *http.Request)
Auth performs the authentication of users swagger:route POST /auth auth authAPIRequest Consumes: - application/json Produces: - application/json responses:
200: authAPIResponse default: Error
func AuthURL ¶
func AuthURL(res http.ResponseWriter, req *http.Request)
AuthURL generates the OAuth2 url needed to login swagger:route GET /auth-url auth authURLAPIRequest Consumes: - application/json Produces: - application/json responses:
200: authURLAPIResponse default: Error
func GetUserFromRequest ¶ added in v1.8.5
Types ¶
type UserContextKey ¶ added in v1.8.5
type UserContextKey struct{}
Click to show internal directories.
Click to hide internal directories.