Documentation ¶
Index ¶
- Constants
- type HTTPManager
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (h *Handler) Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) Get(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) GetAll(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) SetRoutes(r *httprouter.Router)
- type Manager
- type MemoryManager
- func (m *MemoryManager) Authenticate(id string, secret []byte) (*fosite.DefaultClient, error)
- func (m *MemoryManager) CreateClient(c *fosite.DefaultClient) error
- func (m *MemoryManager) DeleteClient(id string) error
- func (m *MemoryManager) GetClient(id string) (fosite.Client, error)
- func (m *MemoryManager) GetClients() (map[string]*fosite.DefaultClient, error)
- type RethinkManager
- func (m *RethinkManager) Authenticate(id string, secret []byte) (*fosite.DefaultClient, error)
- func (m *RethinkManager) ColdStart() error
- func (m *RethinkManager) CreateClient(c *fosite.DefaultClient) error
- func (m *RethinkManager) DeleteClient(id string) error
- func (m *RethinkManager) GetClient(id string) (fosite.Client, error)
- func (m *RethinkManager) GetClients() (map[string]*fosite.DefaultClient, error)
- func (m *RethinkManager) Watch(ctx context.Context)
- type Storage
Constants ¶
View Source
const ( ClientsResource = "rn:hydra:clients" ClientResource = "rn:hydra:clients:%s" Scope = "hydra.clients" )
View Source
const (
ClientsHandlerPath = "/clients"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPManager ¶
func (*HTTPManager) CreateClient ¶
func (m *HTTPManager) CreateClient(c *fosite.DefaultClient) error
func (*HTTPManager) DeleteClient ¶
func (m *HTTPManager) DeleteClient(id string) error
func (*HTTPManager) GetClients ¶
func (m *HTTPManager) GetClients() (map[string]*fosite.DefaultClient, error)
type Handler ¶
func (*Handler) Create ¶
func (h *Handler) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Handler) Delete ¶
func (h *Handler) Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) Get ¶
func (h *Handler) Get(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) GetAll ¶
func (h *Handler) GetAll(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Handler) SetRoutes ¶
func (h *Handler) SetRoutes(r *httprouter.Router)
type MemoryManager ¶
type MemoryManager struct { Clients map[string]*fosite.DefaultClient Hasher hash.Hasher sync.RWMutex }
func (*MemoryManager) Authenticate ¶
func (m *MemoryManager) Authenticate(id string, secret []byte) (*fosite.DefaultClient, error)
func (*MemoryManager) CreateClient ¶
func (m *MemoryManager) CreateClient(c *fosite.DefaultClient) error
func (*MemoryManager) DeleteClient ¶
func (m *MemoryManager) DeleteClient(id string) error
func (*MemoryManager) GetClient ¶
func (m *MemoryManager) GetClient(id string) (fosite.Client, error)
func (*MemoryManager) GetClients ¶
func (m *MemoryManager) GetClients() (map[string]*fosite.DefaultClient, error)
type RethinkManager ¶
type RethinkManager struct { Session *r.Session Table r.Term sync.RWMutex Clients map[string]*fosite.DefaultClient Hasher hash.Hasher }
func (*RethinkManager) Authenticate ¶
func (m *RethinkManager) Authenticate(id string, secret []byte) (*fosite.DefaultClient, error)
func (*RethinkManager) ColdStart ¶
func (m *RethinkManager) ColdStart() error
func (*RethinkManager) CreateClient ¶
func (m *RethinkManager) CreateClient(c *fosite.DefaultClient) error
func (*RethinkManager) DeleteClient ¶
func (m *RethinkManager) DeleteClient(id string) error
func (*RethinkManager) GetClient ¶
func (m *RethinkManager) GetClient(id string) (fosite.Client, error)
func (*RethinkManager) GetClients ¶
func (m *RethinkManager) GetClients() (map[string]*fosite.DefaultClient, error)
func (*RethinkManager) Watch ¶
func (m *RethinkManager) Watch(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.