hydra

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package to talk to Ory Hydra.

Thin wrapper around Ory's go client, to hide the ugly openapi generated code.

Index

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.

func (*HydraClient) GetStatus

func (h *HydraClient) GetStatus(ctx context.Context) (*string, error)

Return Hydra 'alive' status. Should be "ok".

Notes

Bugs

  • max 100, paging not implemented.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL