Versions in this module Expand all Collapse all v0 v0.4.1 Aug 18, 2016 v0.4.0 Aug 17, 2016 v0.3.1 Aug 17, 2016 v0.3.0 Aug 9, 2016 Changes in this version type Client + Scope string v0.2.0 Aug 9, 2016 Changes in this version + const ClientResource + const ClientsHandlerPath + const ClientsResource + const Scope + type Client struct + ClientURI string + Contacts []string + GrantTypes []string + ID string + LogoURI string + Name string + Owner string + PolicyURI string + RedirectURIs []string + ResponseTypes []string + Scopes string + Secret string + TermsOfServiceURI string + func (c *Client) GetGrantTypes() fosite.Arguments + func (c *Client) GetHashedSecret() []byte + func (c *Client) GetID() string + func (c *Client) GetOwner() string + func (c *Client) GetRedirectURIs() []string + func (c *Client) GetResponseTypes() fosite.Arguments + func (c *Client) GetScopes() fosite.Arguments + type HTTPManager struct + Client *http.Client + Dry bool + Endpoint *url.URL + func (m *HTTPManager) CreateClient(c *Client) error + func (m *HTTPManager) DeleteClient(id string) error + func (m *HTTPManager) GetClient(id string) (fosite.Client, error) + func (m *HTTPManager) GetClients() (map[string]Client, error) + func (m *HTTPManager) GetConcreteClient(id string) (*Client, error) + type Handler struct + H herodot.Herodot + Manager Manager + W firewall.Firewall + 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 interface + Authenticate func(id string, secret []byte) (*Client, error) + type MemoryManager struct + Clients map[string]Client + Hasher hash.Hasher + func (m *MemoryManager) Authenticate(id string, secret []byte) (*Client, error) + func (m *MemoryManager) CreateClient(c *Client) error + func (m *MemoryManager) DeleteClient(id string) error + func (m *MemoryManager) GetClient(id string) (fosite.Client, error) + func (m *MemoryManager) GetClients() (clients map[string]Client, err error) + func (m *MemoryManager) GetConcreteClient(id string) (*Client, error) + type RethinkManager struct + Clients map[string]Client + Hasher hash.Hasher + Session *r.Session + Table r.Term + func (m *RethinkManager) Authenticate(id string, secret []byte) (*Client, error) + func (m *RethinkManager) ColdStart() error + func (m *RethinkManager) CreateClient(c *Client) error + func (m *RethinkManager) DeleteClient(id string) error + func (m *RethinkManager) GetClient(id string) (fosite.Client, error) + func (m *RethinkManager) GetClients() (clients map[string]Client, err error) + func (m *RethinkManager) GetConcreteClient(id string) (*Client, error) + func (m *RethinkManager) Watch(ctx context.Context) + type Storage interface + CreateClient func(c *Client) error + DeleteClient func(id string) error + GetClients func() (map[string]Client, error) + GetConcreteClient func(id string) (*Client, error)