Documentation ¶
Overview ¶
Package to talk to Ory Hydra.
Thin wrapper around Ory's go client, to hide the ugly openapi generated code.
Index ¶
- type HydraClient
- func (h *HydraClient) AddRedirectUris(ctx context.Context, oauth2Client client.OAuth2Client, callbackUrl []string, ...) (*client.OAuth2Client, error)
- func (h *HydraClient) GetClients(ctx context.Context) ([]client.OAuth2Client, error)
- func (h *HydraClient) GetStatus(ctx context.Context) (*string, error)
- Bugs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HydraClient ¶
type HydraClient struct {
// contains filtered or unexported fields
}
func NewHydraClient ¶
func NewHydraClient(adminURL string) *HydraClient
func (*HydraClient) AddRedirectUris ¶
func (h *HydraClient) AddRedirectUris(ctx context.Context, oauth2Client client.OAuth2Client, callbackUrl []string, postLogoutUrl []string) (*client.OAuth2Client, error)
func (*HydraClient) GetClients ¶
func (h *HydraClient) GetClients(ctx context.Context) ([]client.OAuth2Client, error)
Return registered OAuth2 clients from Hydra. BUG(js): max 100, paging not implemented.
Notes ¶
Bugs ¶
max 100, paging not implemented.
Click to show internal directories.
Click to hide internal directories.