Documentation ¶
Overview ¶
Package oathclients contains clients endpoints and helpers related to client credentials.
Index ¶
- func CheckClientIntegrity(name string, c *pb.Client) error
- func ExtractClientID(r *http.Request) string
- func ExtractClientSecret(r *http.Request) string
- func NewAdminClientHandler(s ClientService, useHydra bool, httpClient *http.Client, hydraAdminURL string) *adminClientHandler
- func NewClientHandler(s ClientService) *clientHandler
- func SyncClients(httpClient *http.Client, hydraAdminURL string, clients map[string]*pb.Client, ...) (*pb.ClientState, error)
- func SyncState(httpClient *http.Client, hydraAdminURL string, clients map[string]*pb.Client, ...) (*pb.ClientState, error)
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckClientIntegrity ¶
CheckClientIntegrity check if the given clientHandler integrity.
func ExtractClientSecret ¶
ExtractClientSecret from request.
func NewAdminClientHandler ¶
func NewAdminClientHandler(s ClientService, useHydra bool, httpClient *http.Client, hydraAdminURL string) *adminClientHandler
NewAdminClientHandler returns adminClientHandler
func NewClientHandler ¶
func NewClientHandler(s ClientService) *clientHandler
NewClientHandler returns clientHandler.
Types ¶
type ClientService ¶
type ClientService interface { HandlerSetup(tx storage.Tx, r *http.Request) (*ga4gh.Identity, int, error) ClientByName(name string) *pb.Client SaveClient(name, secret string, cli *pb.Client) RemoveClient(name string, cli *pb.Client) Save(tx storage.Tx, desc, typeName string, r *http.Request, id *ga4gh.Identity, m *pb.ConfigModification) error CheckIntegrity(r *http.Request, m *pb.ConfigModification) *status.Status }
ClientService provides data storage for clients.
Click to show internal directories.
Click to hide internal directories.