Documentation ¶
Overview ¶
Package handler
Defined permissions: * permission("rn:hydra:policies") actions("create") * permission("rn:hydra:policies:%s", id) actions("get", "delete")
Index ¶
- type CreatePolicyPayload
- type GrantedPayload
- type Handler
- func (h *Handler) Create(ctx context.Context, rw http.ResponseWriter, req *http.Request)
- func (h *Handler) Delete(ctx context.Context, rw http.ResponseWriter, req *http.Request)
- func (h *Handler) Get(ctx context.Context, rw http.ResponseWriter, req *http.Request)
- func (h *Handler) Granted(ctx context.Context, rw http.ResponseWriter, req *http.Request)
- func (h *Handler) SetRoutes(r *mux.Router, extractor func(h hctx.ContextHandler) hctx.ContextHandler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePolicyPayload ¶
type GrantedPayload ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(s Storage, m middleware.Middleware, g Guarder, j *jwt.JWT, o osin.Storage) *Handler
func (*Handler) SetRoutes ¶
func (h *Handler) SetRoutes(r *mux.Router, extractor func(h hctx.ContextHandler) hctx.ContextHandler)
Click to show internal directories.
Click to hide internal directories.